Re: about NULL - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: about NULL
Date
Msg-id 0c9601c31f75$d9b61790$6500a8c0@fhp.internal
Whole thread Raw
In response to about NULL  (zhangyue <postgresql@db.pku.edu.cn>)
List 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 by date:

Previous
From: zhangyue
Date:
Subject: about NULL
Next
From: Teodor Sigaev
Date:
Subject: Re: Please, apply patch for current CVS