【发布时间】:2017-09-15 03:28:21
【问题描述】:
我的视图中有这段代码:
SELECT json_object_agg(code,value) FROM table1
它在我的 postgREST api 中生成:
[{"json_object_agg":"{code1: value1, code2: value2, ...}"]
我想删除json_object_agg 使其变成这样:
[{code1: value1, code2: value2, ...}]
我该怎么做?
【问题讨论】:
标签: arrays json postgresql view postgrest