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

SV: SQL delete and update at the same time

2020-06-25 Thread paul.malm
21:33 Till: Malm, Paul (Operations AIM) Kopia: PostgreSQL General Ämne: Re: SQL delete and update at the same time 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

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

SQL delete and update at the same time

2020-06-24 Thread paul.malm
Hi list, the question is in the ens of the Mail. I have a problem with adjacent polygons when converting them to lines, as I would like to only have one line in the boundaries between the former polygons. Now it could be up to 5. I’ve been thinking of: 1. Creating a thin buffer around the l