Re: "= Null" <> "is Null"?

From: Scott Bailey <artacus(at)comcast(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: "= Null" <> "is Null"?
Date: 2009-07-08 19:48:49
Message-ID: 4A54F821.8070505@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Some DB's say that an empty string is the same as null, it doesn't mean
> they're right. In fact, it can be rather inconvenient if an empty string
> in your data also has a meaning (namely 'known to be an empty string'
> instead of 'unknown')!

This is the behavior in Oracle. And I found that out the hard way...
what a PITA.

Anyhow, this isn't specific to Postgres, but here's a Wikipedia entry
for how ternary or 3 valued logic works.

http://en.wikipedia.org/wiki/Ternary_logic

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-07-08 20:14:34 Re: Checkpoint Tuning Question
Previous Message Scott Marlowe 2009-07-08 19:45:42 Re: Oracle Help in PG?