数据仓库服务 GAUSSDB(DWS)-JSON/JSONB函数:json_to_tsvector(config regconfig, ] json, jsonb)

时间:2024-04-18 16:25:05

json_to_tsvector(config regconfig, ] json, jsonb)

描述:将json格式转换为用于支持全文检索的文件格式tsvector。

返回类型:jsonb

示例:
1
2
3
4
5
SELECT json_to_tsvector('{"a":1, "b":2, "c":3}'::json, to_jsonb('key'::text));
 json_to_tsvector
------------------
 'b':2 'c':4
(1 row)
support.huaweicloud.com/sqlreference-830-dws/dws_06_0356.html
推荐文章