Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个json
{ "timer": { "19272": { "asset_id": 9354, "original_total_time": 5, "original_warning_time": null } }, "SEBKeys": [], "scoreMappings": [] }
我需要使用 Postgres 从这个 json 中提取 'original_total_time' 值。
任何人都可以帮忙吗?
如果您的 JSON 结构是固定的,那么您可以使用以下查询
select json_->'timer'->'19272'->>'original_total_time' from test
演示