ST_X
Descriptionβ
When point is a valid POINT type, return the corresponding x-coordinate value
Syntaxβ
ST_X( <point>)
Parametersβ
Parameters | Instructions |
---|---|
<point> | The geometric coordinates of a two-dimensional point |
Return Valueβ
X value in geometric coordinates
Examplesβ
SELECT ST_X(ST_Point(24.7, 56.7));
+----------------------------+
| st_x(st_point(24.7, 56.7)) |
+----------------------------+
| 24.7 |
+----------------------------+