【发布时间】:2020-09-16 11:59:27
【问题描述】:
我有一个数据库,它有一个 table。我的表 id 中有两列,以及类型的描述 jsonb 现在我想获取表中的所有 name。如何做到这一点
我试过这样但没有用
SELECT description::jsonb->name FROM Category
预期输出
["hello","test","world"]
【问题讨论】:
标签: sql arrays json postgresql postgresql-9.4