A Point consists of X and Y coordinates,
which may be obtained using the following functions:
Returns the X-coordinate value for the
Point object p
as a double-precision number.
mysql> SELECT ST_X(POINT(56.7, 53.34));
+--------------------------+
| ST_X(POINT(56.7, 53.34)) |
+--------------------------+
| 56.7 |
+--------------------------+
ST_X() was added in MySQL
5.6.1.
Returns the Y-coordinate value for the
Point object p
as a double-precision number.
mysql> SELECT ST_Y(POINT(56.7, 53.34));
+--------------------------+
| ST_Y(POINT(56.7, 53.34)) |
+--------------------------+
| 53.34 |
+--------------------------+
ST_Y() was added in MySQL
5.6.1.
ST_X() and
X() are synonyms. For more
information, see the description of
ST_X().
ST_Y() and
Y() are synonyms. For more
information, see the description of
ST_Y().