Re: SQL delete and update at the same time

2020-06-25 Thread Michael Lewis
Sorry, I don't know much about postgis at all. I assume you meant to have THEN 1 in your update statement as well. I notice b.fid=l.fid and NOT b.fid=l.fid in the two clauses. How about separate update statements? UPDATE linesegments l set edited = 1 WHERE l.gid IN (SELECT li.gid FROM linesegmen

Re: SQL delete and update at the same time

2020-06-24 Thread Michael Lewis
> > But how can I set the edited vale = 1 on the objects (line segments) that > are not deleted (in the current buffer) at the same time so it won’t be > deleted in the next run with an adjacent buffer? > You might want to create a temporary table to hold unique identifiers of all records that you