Re: Violation of NOT NULL

From: "Joel Burton" <joel(at)joelburton(dot)com>
To: "Wm(dot) G(dot) Urquhart" <wgu(at)wurquhart(dot)co(dot)uk>, "Mike Mascari" <mascarm(at)mascari(dot)com>
Cc: "PostgreSQL General Forum" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Violation of NOT NULL
Date: 2002-05-23 18:31:12
Message-ID: JGEPJNMCKODMDHGOBKDNKEFMCPAA.joel@joelburton.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Wm. G. Urquhart
> Sent: Thursday, May 23, 2002 11:19 AM
> To: Mike Mascari
> Cc: PostgreSQL General Forum
> Subject: Re: [GENERAL] Violation of NOT NULL
>
>
> On Thu, 23 May 2002, Mike Mascari wrote:
>
> <snip/>
> > Also, if by chance you are coming over from Oracle and expect an empty
> > string to be treated as NULL, it is not...
> >
> > Mike Mascari
> > mascarm(at)mascari(dot)com
> >
>
> Well I have a few years of Oracle behind me and it has to said I was
> working on that assumption.
>
> With that said if '' does != NULL then what does? Just NULL? In my book
> NULL means undefined and IMHO you can't get more undefined than ''!

NULL is unknown. '' is empty. If I don't have a middle name, then my middle
name = ''. If I might have one, but you don't know what it is, then my
middle name IS NULL. (Which is, subtly, not the same thing as = NULL, as
NULL is a state or condition, rather than a value. Nothing is = NULL, not
even NULL itself.)

- J.

Joel BURTON | joel(at)joelburton(dot)com | joelburton.com | aim: wjoelburton
Knowledge Management & Technology Consultant

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Marconi 2002-05-23 19:10:06 Stored Procedure Problem
Previous Message Fran Fabrizio 2002-05-23 18:16:53 Re: Violation of NOT NULL