Skip to main content
Returns the Y coordinate of a point. For a GEOGRAPHY value, Y is latitude in degrees under the OGC:CRS84 spherical contract. For a GEOMETRY value, Y is returned in the units of its declared CRS and is not necessarily latitude. The value must be a non-empty POINT.

Syntax

Native overloads

Legacy overloads

The argument is a VARCHAR-encoded point from a constructor such as ST_Point.

Return value

Returns NULL when the input is NULL. For native GEOGRAPHY and GEOMETRY, an empty value or a non-POINT family produces an error. Native compute supports XY values with a valid descriptor.

Examples

Native examples

Legacy example

keyword

ST_Y,ST,Y GEOGRAPHY, GEOMETRY, VARCHAR, DOUBLE