I have a table called customer_campaign
, and there is an empty column geom(geography)
in it. So I want to fill it up by using ST_MakePoint(long, lat)
in PostGIS
, lat and long
are two columns in the customer_campaign
table. I tried the following query:
SELECT ST_MakePoint(customer_campaign.long, customer_campaign.lat);
But returns an error. How do I populate geography
column with ST_Make(long, lat)
in PostGIS
?