Re: [HACKERS] about NULL

From: DeJuan Jackson <djackson(at)speedfc(dot)com>
To: shridhar_daithankar(at)persistent(dot)co(dot)in
Cc: zhangyue <postgresql(at)db(dot)pku(dot)edu(dot)cn>, pgsql-general(at)postgresql(dot)org
Subject: Re: [HACKERS] about NULL
Date: 2003-05-21 16:12:32
Message-ID: 3ECBA570.8000809@speedfc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

SELECT * FROM tb WHERE name IS NULL;

And I think it should have been on the SQL list, myself...

Shridhar Daithankar wrote:

>On 21 May 2003 at 16:10, zhangyue wrote:
>
>
>
>>Hi,
>>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 columns from table where attribute is null;
>
>This should have been on postgresql-general, not on hackers..
>
>HTH
>
>Bye
> Shridhar
>
>--
>Fourth Law of Applied Terror: The night before the English History mid-term,
>your Biology instructor will assign 200 pages on planaria.Corollary: Every
>instructor assumes that you have nothing else to do except study for that
>instructor's course.
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/docs/faqs/FAQ.html
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ahoward 2003-05-21 16:22:01 Re: [GENERAL] pam-linux, /etc/shadow : HOW-TO
Previous Message Vivek Khera 2003-05-21 16:02:01 Re: PRIMARY KEYS

Browse pgsql-hackers by date

  From Date Subject
Next Message wade 2003-05-21 16:14:40 CVS Servers (Anonymous)
Previous Message Josh Berkus 2003-05-21 16:05:25 Re: Suggestion GRANT ALTER, TRIGGER ON ALTER