在ST_SRID中,似乎没有像其他DBMS:SELECT ST_SRID(geom) FROM sampletable那样的exasol函数。
是否有有效的解决办法来确定geometry列的SRID?到目前为止,我只成功地从包含几何学列的表的COLUMN_TYPE字符串中解析了COLUMN_TYPE字符串,这似乎有点笨拙……
发布于 2022-05-25 12:15:07
在Exasol中没有这方面的特定功能。
除了使用EXA_USER_COLUMNS之外,如果使用Exasol7.1,也可以使用类型。这是一个标量函数,它返回它的参数的数据类型。
例如:
create or replace table t(a geometry, b geometry(1), c geometry(2));
insert into t values (null,null,null);
select regexp_substr(typeof(a), '[\d]*'), regexp_substr(typeof(b), '[\d]*'),regexp_substr(typeof(c), '[\d]*') from t;https://stackoverflow.com/questions/72377009
复制相似问题