Update values in a spatial column
You run the SQL UPDATE statement to alter the values in a spatial column in the same way that you update any other type of column. Typically, you must retrieve spatial column data from the table, alter the data in a client application, and then return the data to the database.
The following pair of SQL statements illustrates how to
fetch the spatial data from one row in the hazardous_sites table
and then update the same item:
SELECT ST_AsText(location) FROM hazardous_sites
WHERE site_id = 102;
UPDATE hazardous_sites
SET location = ST_PointFromText('point(18000 57000)', 5)
WHERE site_id = 102;