如何从列上具有相等谓词的表中进行选择point
?
需要明确的是:它是原生的 Postgrespoint
数据类型,而不是geometry(point)
来自 PostGIS。
select a.* from indsolv.address As a where a.location = '93.2321, 21.0321';
为上述查询获取此错误:
ERROR: operator does not exist: point = unknown LINE 1: ...ct a.* from indsolv.address As a where a.location = '93.2321... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. SQL state: 42883
还尝试过:
select a.* from indsolv.address As a where a.location = point('93.2321,21.0321');
仍然出现错误。