Re: request for sql3 compliance for the update command

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: request for sql3 compliance for the update command
Дата
Msg-id 1045735214.1397.8.camel@fuji.krosing.net
обсуждение исходный текст
Ответ на Re: request for sql3 compliance for the update command  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: request for sql3 compliance for the update command
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: request for sql3 compliance for the update command