嵌套json的查询

postgres=# SELECT  t.data->'objects'->1->'src' AS ct
FROM   reports as t
     , json_array_elements(t.data->'objects') o
WHERE concat(o->>'src') LIKE '%bar%'
;

posted on 2016-06-01 23:36  与非朋仔  阅读(779)  评论(0编辑  收藏  举报

导航