在 PostGIS SQL 编辑器中,我只想制作一个循环以使此功能正常工作
For Loopid = 0 to 1000, then execute the following statments:
UPDATE public.globaldtm
SET "UTM" = loopid
WHERE rid IN (SELECT rid FROM globaldtm WHERE ST_Intersects(rast,(select geom from utm where gid =loopid)));
如何在这个 SQL 编辑器中编写一个简单的代码来使循环工作。谢谢。