pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values
Date: Tue, 30 Jan 2007 11:55:03 -0500
Message-ID: <20070130165503.GC32170@phlogiston.dyndns.org> (raw)
In-Reply-To: <20070130113834.fa8d09e0.darcy@druid.net>
References: <20070130131334.GD31676@phlogiston.dyndns.org>
	<45BF584F.A3DD.0030.0@indicator.be>
	<20070130142332.GA31905@phlogiston.dyndns.org>
	<20070130113834.fa8d09e0.darcy@druid.net>

On Tue, Jan 30, 2007 at 11:38:34AM -0500, D'Arcy J.M. Cain wrote:
> I don't have an Oracle installation here and I haven't used it much but
> I wonder if they treat the following two statements differently.
> 
>    SELECT * FROM table WHERE column IS NULL;
>    SELECT * FROM table WHERE column = NULL;

AFAIK they don't accept the latter any more than we do.  But again,
I'm an Oracle ignoramous.  I _do_ know that people of my acquaintance
who have historically only developed against Oracle have given me
queries with things like 

	value = ''

in it, and been surprised.  Or at least, I think it's like that.  I
do recall hearing a lot about how stupid Postgres was because it
didn't like something that worked "perfectly well" on Oracle, which I
was assured was the most SQL-compliant system on the planet. 
Happily, I no longer work with any of those people :)

A
-- 
Andrew Sullivan  | ajs@crankycanuck.ca
"The year's penultimate month" is not in truth a good way of saying
November.
		--H.W. Fowler



view thread (15+ messages)  latest in thread

Message-ID: <20070130165503.GC32170@phlogiston.dyndns.org>
Permalink:  ../20070130165503.GC32170@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20070130165503.GC32170@phlogiston.dyndns.org

 · 

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: ajs@crankycanuck.ca
  Subject: Re: Differentiate Between Zero-Length String and NULLColumn Values
  In-Reply-To: <20070130165503.GC32170@phlogiston.dyndns.org>

* 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