展开一个jsonb数组proprietie

时间:2017-07-18 15:31:29

标签: arrays postgresql expand postgresql-9.4 jsonb

通过从pg3数据库中的jsonb字段中选择,我得到的结果如下:

  

RES   文本

     

[“card”,“dog”,“chair”]

     

[“house”,]

查询:

select DISTINCT (table.properties->'attr'->>'objects') as arrays from table

如何扩展该数组,以便每个元素出现在一行?

0 个答案:

没有答案