数据仓库服务 GaussDB(DWS)-JSON/JSONB函数:jsonb_exists_all(jsonb, text[])

时间:2025-02-12 15:04:42

jsonb_exists_all(jsonb, text[])

描述:同操作符?&,字符串数组$2里面是否所有的元素,都在$1的顶层以key\elem\scalar的形式存在。

返回类型:

bool

示例:

12345
SELECT jsonb_exists_all('["1","2",3]', '{1, 2}'); jsonb_exists_all------------------ t(1 row)
support.huaweicloud.com/sqlreference-910-dws/dws_06_0356.html
推荐文章