暂无图片
PostgreSQL 里面有列转行的函数吗?
我来答
分享
暂无图片 匿名用户
PostgreSQL 里面有列转行的函数吗?

PostgreSQL 里面有列转行的函数吗?

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
李宏达
postgres=# select * from test.test_str; no | name ----+------------ 1 | a,b,c,d 2 | Jason Xian (2 rows) 将列信息转换成行 postgres=# select regexp_split_to_table(name,',') from test.test_str where no=1; regexp_split_to_table ----------------------- a b c d (4 rows) postgres=# select regexp_split_to_table(name,' ') from test.test_str where no=2; regexp_split_to_table ----------------------- Jason Xian (2 rows) postgres=# select regexp_split_to_table('hello world', '\s+'); regexp_split_to_table ----------------------- hello world (2 rows)
暂无图片 评论
暂无图片 有用 0
刘贵宾
暂无图片 评论
暂无图片 有用 2
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏