From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Mark Morgan Lloyd <markMLl.pgsql-odbc@telemetry.co.uk>
To: pgsql-odbc@postgresql.org
Subject: Re: '= NULL' is not the same as 'IS NULL'
Date: Wed, 6 Sep 2006 13:56:32 -0700 (PDT)
Message-ID: <20060906205632.30759.qmail@web31803.mail.mud.yahoo.com> (raw)
In-Reply-To: <44FF3252.8F6A978B@telemetry.co.uk>
> I'm afraid so, in Joe Celko's "SQL for Smarties" book, after which I simply
> accepted that that was the way SQL worked.
Yes for what I recall from my reading that he mentions that there are specific reasons to allow
nulls. During Table design, if one cannot see how these specific rules apply to the data to of a
column, then the column should be constrained as NOT NULL, with a DEFAULT value as '{left blank}'
or 0 or some other value that would produce this effect.
But I am sure that this is just one particular philosophy of table design.
Regards,
Richard Broersma Jr.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: rabroersma@yahoo.com, markMLl.pgsql-odbc@telemetry.co.uk
Subject: Re: '= NULL' is not the same as 'IS NULL'
In-Reply-To: <20060906205632.30759.qmail@web31803.mail.mud.yahoo.com>
References: <44FF3252.8F6A978B@telemetry.co.uk> <20060906205632.30759.qmail@web31803.mail.mud.yahoo.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