pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Weeks <danimal@wildbrain.com>
To: Rod Taylor <rbt@rbt.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: silly NULL question
Date: Thu, 24 Jul 2003 16:31:13 -0700
Message-ID: <16160.27713.892311.733277@underdog.wildbrain.com> (raw)
In-Reply-To: <1059089115.90090.8.camel@jester>
References: <16160.26749.931319.656882@underdog.wildbrain.com>
	<1059089115.90090.8.camel@jester>

>>>>> "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 




view thread (3+ messages)

Message-ID: <16160.27713.892311.733277@underdog.wildbrain.com>
Permalink:  ../16160.27713.892311.733277@underdog.wildbrain.com/
Also on:    postgresql.org/message-id/16160.27713.892311.733277@underdog.wildbrain.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: danimal@wildbrain.com, rbt@rbt.ca
  Subject: Re: silly NULL question
  In-Reply-To: <16160.27713.892311.733277@underdog.wildbrain.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox