logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Retrieving NULL records: msg#00217

Subject: Re: Retrieving NULL records
Shouldn't  = NULL  be considered a syntax error ?


Tom Lane <tgl@xxxxxxxxxxxxx> schrieb am 29.07.2003, 07:41:15:
> "psql novice"  writes:
> > stock=> select * from stock where qty = NULL;
> 
> The correct incantation is
> 
>  select * from stock where qty IS NULL;
> 
> Ordinary comparisons involving NULL always fail (or more accurately,
> return NULL).  You have to use the special "is null" operator instead.
> 
>                       regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
>                http://archives.postgresql.org

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>