PostgreSQL数据库相关函数运用
regexp_split_to_array 函数
字符串分隔函数,可通过指定的表达式进行分隔,将字符串转换成数组。
搜索条件为多选,如选择a,c
# regexp_split_to_array(字段名,分隔符)
select regexp_split_to_array('a,b,c',',');
regexp_split_to_table 函数
字符串分隔函数,可通过指定的表达式进行分隔,将分割出的数据转成行,转换成结果集。
# regexp_split_to_table(字段名,分隔符)
select regexp_split_to_table('a,b

最低0.47元/天 解锁文章
1006

被折叠的 条评论
为什么被折叠?



