Re: request for sql3 compliance for the update command - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: request for sql3 compliance for the update command
Date
Msg-id 1045735214.1397.8.camel@fuji.krosing.net
Whole thread Raw
In response to Re: request for sql3 compliance for the update command  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian kirjutas N, 20.02.2003 kell 06:16:
> Agreed folks are going to have bigger problems from Informix than just
> this, and in fact I used Informix for years and didn't know they allowed
> this.
> 
> However, what solution do we have for UPDATE (coll...) = (select val...)
> for folks?  It is awkward to repeat a query multiple times in an UPDATE.
> 
> I think it makes sense to add it only if it adds functionality.

It makes it easier (less keystrokes) to write as well as similar in
appearance to INSERT, so the same code can be used to generate the
queries.

If we were at adding functionality then IMHO making VALUES(x,y,z) a
proper "rowsource" would be a more worthy effort.

---------------
Hannu



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: request for sql3 compliance for the update command
Next
From: Hannu Krosing
Date:
Subject: Re: request for sql3 compliance for the update command