Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Extract lat/long from point type column

$
0
0

In my table I have a column “location” that is a POINT. I tried this:

SELECT ST_X(location), ST_Y(location) FROM locations;

But I still get the error message:
ERROR: function st_x(point) does not exist


Viewing all articles
Browse latest Browse all 1138

Trending Articles