Re: minimal update

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: minimal update
Дата
Msg-id 47387926.9050305@dunslane.net
обсуждение исходный текст
Ответ на Re: minimal update  (Decibel! <decibel@decibel.org>)
Список pgsql-hackers

Decibel! wrote:
> On Nov 2, 2007, at 10:49 AM, Andrew Dunstan wrote:
>>    update tname set foo = bar ... where foo is null or foo <> bar ...
>
> FYI, you should be able to do WHERE foo IS DISTINCT FROM bar instead.

True, that's a bit nicer. It's still more than somewhat ugly and fragile 
if there a lot of foos and the bars are complex expressions.

cheers

andrew


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

Предыдущее
От: Decibel!
Дата:
Сообщение: Re: minimal update
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [hibernate-team] PostgreSQLDialect