数据仓库服务 GAUSSDB(DWS)-JSON/JSONB函数:jsonb_object_keys(object-jsonb)

时间:2024-09-24 15:54:38

jsonb_object_keys(object-jsonb)

描述:返回对象中顶层的所有键。

返回类型:SETOF text

示例:

1
2
3
4
5
6
SELECT jsonb_object_keys('{"f1":"abc","f2":{"f3":"a", "f4":"b"}, "f1":"abcd"}');
 jsonb_object_keys
-------------------
 f1
 f2
(2 rows)
support.huaweicloud.com/sqlreference-910-dws/dws_06_0356.html