I have a custom spatial function and its working with this parameters (coordinates):
SELECT get_nearest_station (-80.364565, 26.070670);
Now, I want to update column "SOURCE" for all rows in a table 'employees_wgs' with this function. Coordinates are in columns X and Y for each record so I have to replace real coordinates with value from those columns.
How to write this query ? Is this need to be dynamic sql or else ?
Thanks
update employees_wgs
set source = get_nearest_station(x,y);
commit;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.