From: | "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> |
---|---|
To: | "Nagib Abi Fadel" <nagib(dot)abi-fadel(at)usj(dot)edu(dot)lb>, "generalpost" <pgsql-general(at)postgresql(dot)org>, "developPost" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Should we consider empty fields as NULL values when dealing with string columns ? |
Date: | 2003-12-11 14:52:43 |
Message-ID: | 03AF4E498C591348A42FC93DEA9661B872022A@mail.vale-housing.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
_____
From: Nagib Abi Fadel [mailto:nagib(dot)abi-fadel(at)usj(dot)edu(dot)lb]
Sent: 11 December 2003 14:37
To: generalpost; developPost
Subject: [HACKERS] Should we consider empty fields as NULL
values when dealing with string columns ?
HI,
let's say we have the following table :
# CREATE TABLE tempo (col1 varchar(3) not null);
CREATE TABLE
# insert INTO tempo VALUES ('');
INSERT 11420541 1
the insert command works.
As it should. NULL != ''. In other words, NULL is no value at all,
whilst '' is an empty string which is a value, albeit one of zero
length.
Regards, Dave.
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2003-12-11 14:59:08 | Re: Storing Snapshot Data |
Previous Message | Doug McNaught | 2003-12-11 14:52:25 | Re: Should we consider empty fields as NULL values when |
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2003-12-11 15:00:15 | Re: Should we consider empty fields as NULL values when dealing with string columns ? |
Previous Message | Doug McNaught | 2003-12-11 14:52:25 | Re: Should we consider empty fields as NULL values when |