| From: | David Johnston <polobo(at)yahoo(dot)com> | 
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org | 
| Subject: | Re: Why is UPDATE with column-list syntax not implemented | 
| Date: | 2013-11-21 18:50:32 | 
| Message-ID: | 1385059832153-5779601.post@n5.nabble.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
AK wrote
> 9.3 documentation says:
> 
> According to the standard, the column-list syntax should allow a list of
> columns to be assigned from a single row-valued expression, such as a
> sub-select:
> 
> UPDATE accounts SET (contact_last_name, contact_first_name) =
>     (SELECT last_name, first_name FROM salesmen
>      WHERE salesmen.id = accounts.sales_id);
> This is not currently implemented — the source must be a list of
> independent expressions.
> 
> Why is this not implemented? Is it considered inconvenient to use, or
> difficult to implement. or not important enough, or some other reason?
I cannot answer why but I too would like to see this.  I actually asked this
a long while back but cannot seem to find my posting or recall the response.
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Why-is-UPDATE-with-column-list-syntax-not-implemented-tp5779600p5779601.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Claudio Freire | 2013-11-21 18:59:54 | Re: Why is UPDATE with column-list syntax not implemented | 
| Previous Message | AK | 2013-11-21 18:28:33 | Why is UPDATE with column-list syntax not implemented |