Riguz留言 | 贡献
创建页面,内容为“ Category:SQL Category:Database Category:PostgreSQL
 
Riguz留言 | 贡献
无编辑摘要
标签2017版源代码编辑
 
第1行: 第1行:
 
<syntaxhighlight lang="sql">
-- content: "[ { "id": "1"} ...]"
select (content::jsonb ->> 0)::jsonb -> 'id' as content_id
from test
</syntaxhighlight>





2025年2月26日 (三) 06:04的最新版本

-- content: "[ { "id": "1"} ...]"
select (content::jsonb ->> 0)::jsonb -> 'id' as content_id
from test