Re: testing for null value in integer field?

Поиск
Список
Период
Сортировка
От Geoffrey
Тема Re: testing for null value in integer field?
Дата
Msg-id 3FE325BD.1040507@3times25.net
обсуждение исходный текст
Ответ на Re: testing for null value in integer field?  (Wei Weng <wweng@kencast.com>)
Список pgsql-sql
Wei Weng wrote:
> Geoffrey wrote:
> 
>> How does one check for an unset value in an integer field?
>>
>> I've tried such things as:
>>
>> select ..... where intnumber = ''
>> select ...... where intnumber =  ?
>> select .....  where intnumber = NULL
>>
>> Thanks.
>>
> It is actually WHERE intnumber IS NULL. You don't use operator = to 
> compare with NULLs, you use IS.

Thank you muchly....

-- 
Until later, Geoffrey    esoteric@3times25.net

Building secure systems inspite of Microsoft



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

Предыдущее
От: Guy Fraser
Дата:
Сообщение: Re: testing for null value in integer field?
Следующее
От: "Matt Van Mater"
Дата:
Сообщение: Re: how to preserve \n in select statement