Re: about NULL

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: about NULL
Дата
Msg-id 0c9601c31f75$d9b61790$6500a8c0@fhp.internal
обсуждение исходный текст
Ответ на about NULL  (zhangyue <postgresql@db.pku.edu.cn>)
Список pgsql-hackers
> How can I get the tuples one of whose attributes is NULL?
> For example,
>   First, create table tb(id int,name text);
>   Then   insert into tb values(1); 
> insert into tb values(2,'Rose');
>   I want to select the tuples whose attribute name= NULL,
> How to write the sql ?

SELECT * FROM tb WHERE name IS NULL;

Chris



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

Предыдущее
От: zhangyue
Дата:
Сообщение: about NULL
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: Please, apply patch for current CVS