PostgreSQL query cheat sheet

Riguz留言 | 贡献2025年2月26日 (三) 06:04的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
-- content: "[ { "id": "1"} ...]"
select (content::jsonb ->> 0)::jsonb -> 'id' as content_id
from test