Re: NULLIF problem

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: NULLIF problem
Дата
Msg-id B98CA260-7332-4DB5-B4CF-462B5FB2C71D@seespotcode.net
обсуждение исходный текст
Ответ на Re: NULLIF problem  (Erik Jones <erik@myemma.com>)
Список pgsql-sql
On Nov 28, 2007, at 14:00 , Erik Jones wrote:

> Why not just:
>
> UPDATE table
> SET mytime=NULL
> WHERE mytime='';

If mytime is a timestamp field, it won't have any values ''. I  
believe the OP is updating mytime to a client-supplied value which is  
passing '' when it probably means NULL.

Michael Glaesemann
grzm seespotcode net




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

Предыдущее
От: "Gera Mel Handumon"
Дата:
Сообщение: Re: NULLIF problem
Следующее
От: "Christian Kindler"
Дата:
Сообщение: statement-level trigger sample out there?