Skip to main content
Version: Latest-3.2

ST_X

Description

If point is of a valid Point type, return the corresponding X-coordinate value.

Syntax

DOUBLE ST_X(POINT point)

Examples

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

keyword

ST_X,ST,X