Documentation Home
MySQL 5.5 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual

12.15.7.2 Point Property Functions

A Point consists of X and Y coordinates, which may be obtained using the following functions:

  • X(p)

    Returns the X-coordinate value for the Point object p as a double-precision number.

    mysql> SELECT X(POINT(56.7, 53.34));
    +-----------------------+
    | X(POINT(56.7, 53.34)) |
    +-----------------------+
    |                  56.7 |
    +-----------------------+
    
  • Y(p)

    Returns the Y-coordinate value for the Point object p as a double-precision number.

    mysql> SELECT Y(POINT(56.7, 53.34));
    +-----------------------+
    | Y(POINT(56.7, 53.34)) |
    +-----------------------+
    |                 53.34 |
    +-----------------------+
    

User Comments
Sign Up Login You must be logged in to post a comment.