ST_Y - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

ST_Y

ST_Y 返回输入点的第二个坐标。

语法

ST_Y(point)

参数

point

一个 POINT 数据类型的 GEOMETRY 值。

返回类型

DOUBLE PRECISION第二个坐标的 值。

如果 point 为 null,则返回 null。

如果 point 是空点,则返回 null。

如果 point 不是 POINT,则返回一个错误。

示例

以下 SQL 返回点的第二个坐标。

SELECT ST_Y(ST_Point(1,2));
st_y ----------- 2.0