【发布时间】:2019-09-27 05:22:13
【问题描述】:
我有下表,postgres 文本数据类型列中的坐标值
create table xy(coordinates text)
insert into xy values('1234567.67890,45678.901234;7890123.67890,67890.801234;5678902.67834,90123.101234')
insert into xy values('3214567.234721,12456.890123')
insert into xy values('4532890.783421,453212.23412')
每一行都包含任何坐标。我想用分号分割。
我想要下面的输出。
x
-
1234567.67890,45678.901234
7890123.67890,67890.801234
5678902.67834,90123.101234
3214567.234721,12456.890123
4532890.783421,453212.23412
【问题讨论】:
-
你真的还在使用 Postgres 9.1 吗? Postgres 9.1 是no longer supported,您应该立即计划升级。
标签: sql split postgresql-9.1