小编scr*_*his的帖子

Postgres正则表达式和regexp_split_to_array

在postgresql中,我需要提取给定列的值中的前两个单词.因此,如果价值是"hello world moon and stars"或"hello world moon",或者甚至只是"hello world",我需要"he​​llo world".

我希望使用,regexp_split_to_array但似乎我不能使用它并访问在同一查询中返回的元素?

我是否需要为我正在尝试的内容创建一个函数?

regex postgresql

7
推荐指数
3
解决办法
2万
查看次数

标签 统计

postgresql ×1

regex ×1