Skip to main content
Version: Latest-4.1

ST_X

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

Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.