Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 484 Bytes

File metadata and controls

30 lines (20 loc) · 484 Bytes

ST_X

功能

当 point 是一个合法的 POINT 类型时,返回对应的 X 坐标值。

语法

ST_X(point)

参数说明

point: 支持的数据类型为 POINT。

返回值说明

返回值的数据类型为 DOUBLE。

示例

MySQL > SELECT ST_X(ST_Point(24.7, 56.7));
+----------------------------+
| st_x(st_point(24.7, 56.7)) |
+----------------------------+
|                       24.7 |
+----------------------------+