Get and set the X coordinate of an ST_Point value.
Valid Data Types
ST_Point
Result Type
| IF you pass in … | THEN ST_X returns … |
|---|---|
| no argument | a FLOAT value for the X coordinate. |
| the xcoord argument | an ST_Geometry value where the X coordinate is set to xcoord. |
| NULL | NULL |