Re: Use select and update together - Mailing list pgsql-sql

From Andreas
Subject Re: Use select and update together
Date
Msg-id 4E74B538.8080902@gmx.net
Whole thread Raw
In response to Re: Use select and update together  (pasman pasmański <pasman.p@gmail.com>)
Responses Re: Use select and update together
List pgsql-sql
Am 13.09.2011 07:50, schrieb pasman pasmański:
> In 8.4 this syntax is not implemented.

select * from (
update tbl set val = 1 where key in ( 1, 2, 3, 4, 5 ) returning *
) as x

wouldn't work even in PG 9.1.
So what data structure is coming out of an "update ... returning *" 
statement?
It obviously doesn't work like a subquery.


pgsql-sql by date:

Previous
From: Andreas
Date:
Subject: insert or update within transaction
Next
From: Josh Kupershmidt
Date:
Subject: Re: insert or update within transaction