From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Stephan Bauer <stephan_bauer(at)gmx(dot)de> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] NOT NULL and postgres 6.5.2 |
Date: | 1999-10-16 18:48:26 |
Message-ID: | 199910161848.TAA23996@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Stephan Bauer wrote:
>Hello all,
>
>I have an table like this:
>
>CREATE TABLE anzeigen (
>...
>
> name varchar(30) NOT NULL,
>...
>);
>
>The following statement _will_ be inserted:
>
>INSERT INTO anzeigen ( ... name ...)
>VALUES ( ..., '', ...);
>
>What is my problem?
An empty string is not the same as null. It is a real value whereas null
is an unknown/undefined/irrelevant value.
--
Vote against SPAM: http://www.politik-digital.de/spam/
========================================
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"But be ye doers of the word, and not hearers only,
deceiving your own selves." James 1:22
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 1999-10-17 15:58:00 | Re: [SQL] NOT NULL and postgres 6.5.2 |
Previous Message | Stephan Bauer | 1999-10-16 18:10:02 | NOT NULL and postgres 6.5.2 |