Re: silly NULL question - Mailing list pgsql-sql

From Dan Weeks
Subject Re: silly NULL question
Date
Msg-id 16160.27713.892311.733277@underdog.wildbrain.com
Whole thread Raw
In response to Re: silly NULL question  (Rod Taylor <rbt@rbt.ca>)
List pgsql-sql
>>>>> "RT" == "Rod Taylor" <rbt@rbt.ca>:
RT> NULL is similar to UNKNOWN.
RT> 
RT> So, NULL = NULL is the similar to UNKNOWN = UNKNOWN.  Since you don't
RT> know it, how can you tell if they're equal or not?
RT> 
RT> Syntax you're looking for is: AND parent_id IS NULL

ah, of course.  Thanks Rod.

RT> If you really really really need = NULL (due to some MS product which
RT> ignores SQL standards -- say MS Access) there is a toggle in the
RT> postgresql.conf file to allow automated conversion of = NULL to IS NULL
RT> within the server.

ah ha!  the culprit.  I see this was default through 7.1.  Thanks again for
accurate and quick reply.

-dan 



pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: silly NULL question
Next
From: "vijaykumar M"
Date:
Subject: Equivalent to sql%rowcount or @@rowcount