TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

SQL Tip: JSONB_AGG in PostgreSQL for simple one-to-many joins

16 点作者 geekuillaume将近 7 年前

3 条评论

sven_n将近 7 年前
I&#x27;m doing this even more extreme... querying a whole complex object graph based on an entity framework core model :) <a href="https:&#x2F;&#x2F;github.com&#x2F;MUnique&#x2F;OpenMU&#x2F;blob&#x2F;master&#x2F;src&#x2F;Persistence&#x2F;EntityFramework&#x2F;Json&#x2F;JsonQueryBuilder.cs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;MUnique&#x2F;OpenMU&#x2F;blob&#x2F;master&#x2F;src&#x2F;Persistenc...</a>
tbrugz将近 7 年前
Oracle has cursor expressions that returns a resultset inside a cell from the parent resultset. The whole resultset could then be serialized to json, xml or whatever<p>I wish there was an equivalent function in PostgreSQL. I&#x27;ve even asked a question about that on stackoverflow:<p><a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;8637050&#x2F;cursor-inside-sql-query" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;8637050&#x2F;cursor-inside-sq...</a>
zykran将近 7 年前
Nice !