Re: [SQL] returning results from an update for joining other tables

2008-06-10 Thread Patrick Scharrenberg
Hi! >> >> What I tried was something like this, which gave me a syntax error: >> >> >> >> SELECT * FROM >> >> ( UPDATE ta >> >> SET process_node='nodename' >> >> WHERE a>10 AND process_node is null >> >> RETURNING * >> >> ) AS ta >> >> JOIN someothertable ON ... > > > > It's a know limitation

Re: [SQL] returning results from an update for joining other tables

2008-06-10 Thread Patrick Scharrenberg
Hi! >> What I tried was something like this, which gave me a syntax error: >> >> SELECT * FROM >> ( UPDATE ta >> SET process_node='nodename' >> WHERE a>10 AND process_node is null >> RETURNING * >> ) AS ta >> JOIN someothertable ON ... > > It's a know limitation, see <[EMAIL PROTECTE

Re: [SQL] returning results from an update for joining other tables

2008-06-10 Thread A. Kretschmer
am Tue, dem 10.06.2008, um 10:50:52 +0200 mailte Patrick Scharrenberg folgendes: > Hi! > > I have a table containing data and a column which holds information on > which compute-node processes the data. In a given interval I'd like to > request some data from this table and mark these returned r

[SQL] returning results from an update for joining other tables

2008-06-10 Thread Patrick Scharrenberg
Hi! I have a table containing data and a column which holds information on which compute-node processes the data. In a given interval I'd like to request some data from this table and mark these returned rows by setting the "process_node" column to the node-name, which asked for data. There may al