Background
I have a table hospitals_healthcenters_jointed_to_evacuationzones
with following attributes:
lat
latitudelong_
longitude
What I tried
I am trying to create a geometry datatype column Point
that combines lat
and long_
I used the following code that I found:
ALTER TABLE hospitals_healthcenters_jointed_to_evacuationzones
ADD shape Point
;
UPDATE hospitals_healthcenters_jointed_to_evacuationzones
SET shape = Point("long_", "lat")
Error I got
But I get the following error:
ERROR: function point(character varying, numeric) does not exist
LINE 4: SET shape = Point("long_", "lat");
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
SQL state: 42883
Character: 157