ST_Y(p)
Y(p)
Returns the Y-coordinate value for the point p as a double-precision number.
ST_Y()
and Y()
are synonyms.
SET @pt = 'Point(56.7 53.34)';
SELECT Y(GeomFromText(@pt));
+----------------------+
| Y(GeomFromText(@pt)) |
+----------------------+
| 53.34 |
+----------------------+
This page is licensed: GPLv2, originally from fill_help_tables.sql
A synonym for ST_Y.
This page is licensed: CC BY-SA / Gnu FDL
A synonym for .
This page is licensed: CC BY-SA / Gnu FDL
ST_X(p)
X(p)
SET @pt = 'Point(56.7 53.34)';
SELECT X(GeomFromText(@pt));
+----------------------+
| X(GeomFromText(@pt)) |
+----------------------+
| 56.7 |
+----------------------+
Learn about POINT properties in MariaDB Server. This section details SQL functions for retrieving attributes of point spatial objects, such as their X and Y coordinates.