- Categories:
ST_Y¶
Returns the latitude (Y coordinate) of a Point represented by a GEOGRAPHY or GEOMETRY object.
Syntax¶
Arguments¶
geography_or_geometry_expressionThe argument must be an expression of the type GEOGRAPHY or GEOMETRY and must contain a Point.
Returns¶
Returns a REAL value.
Usage notes¶
Issues an error if the argument is not a Point.
Examples¶
GEOGRAPHY examples¶
This shows a simple use of the ST_X and ST_Y functions with VARCHAR data:
This shows use of the ST_X and ST_Y functions with NULL values: