Re: request for sql3 compliance for the update command

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: request for sql3 compliance for the update command
Дата
Msg-id 050601c2d885$2440c630$6500a8c0@fhp.internal
обсуждение исходный текст
Ответ на Re: request for sql3 compliance for the update command  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
> While I don't see the syntax of:
> 
> update table set (col...) = ( val...)
> 
> as valuable compared to separate col=val assignments, I do see a value
> in allowing subqueries in such assignments:
> 
> update table set (col...) = ( select val ..)
> 
> Without it, you have to do separate subquery statements, and if they are
> complex, that is a waste.  I assume that was the motivation for the
> feature.

The number of times I've needed this feature... :)

Chris




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Detecting corrupted pages earlier
Следующее
От: Justin Clift
Дата:
Сообщение: Re: request for sql3 compliance for the update command