Re: UPDATE statement

Поиск
Список
Период
Сортировка
Искать
От
Geoffrey KRETZ
Тема
Re: UPDATE statement
Дата
Msg-id
40FB9434.4030004@4js.com
Список
Дерево обсуждения
UPDATE statement Geoffrey KRETZ <gk@4js.com>
Richard Huxton wrote:

> Geoffrey KRETZ wrote:
>
>> Hello,
>>
>> Is it a way to make the following UPDATE statement work with PGS 7.4 
>> (UNIX) :
>>
>> UPDATE dbit2 SET (dbit2_key,dbit2_c10,dbit2_vc200) = 
>> (ABS(-1),NULL,'xx') WHERE dbit2_key=1
>>
>> Or am I force to use the following syntax :
>>
>> UPDATE dbit2 SET dbit2_key = ABS(-1), dbit2_c10 = NULL , dbit2_vc200 
>> = 'xx' WHERE dbit2_key=1
>
>
> Sorry - only the second one. See the UPDATE page in the manuals for 
> details.
>
> (You're not the first to suggest that SQL's update and insert 
> statements should look the same. Unfortunately, without a time-machine 
> we're stuck with two different forms).
>
Thanks for the quick answer

Geoffrey
В списке pgsql-general по дате отправления
От: Geoffrey KRETZ
Дата:
От: Michal Hlavac
Дата:
Сообщение: Index Using
FAQ