Re: Should we consider empty fields as NULL values when dealing with string columns ? - Mailing list pgsql-hackers

From Dave Page
Subject Re: Should we consider empty fields as NULL values when dealing with string columns ?
Date
Msg-id 03AF4E498C591348A42FC93DEA9661B872022A@mail.vale-housing.co.uk
Whole thread Raw
In response to Should we consider empty fields as NULL values when dealing with string columns ?  ("Nagib Abi Fadel" <nagib.abi-fadel@usj.edu.lb>)
List pgsql-hackers
 


From: Nagib Abi Fadel [mailto:nagib.abi-fadel@usj.edu.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.

pgsql-hackers by date:

Previous
From: "Nagib Abi Fadel"
Date:
Subject: Should we consider empty fields as NULL values when dealing with string columns ?
Next
From: Doug McNaught
Date:
Subject: Re: [GENERAL] Should we consider empty fields as NULL values when