Re: Use select and update together

From: Andreas <maps(dot)on(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Use select and update together
Date: 2011-09-17 14:56:56
Message-ID: 4E74B538.8080902@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Kupershmidt 2011-09-17 15:49:49 Re: insert or update within transaction
Previous Message Andreas 2011-09-17 14:52:55 insert or update within transaction