Re: How to setup default value "0000-00-00" for "date" - Mailing list pgsql-general

From Christian Kratzer
Subject Re: How to setup default value "0000-00-00" for "date"
Date
Msg-id 20040820085717.N65897@vesihiisi.cksoft.de
Whole thread Raw
In response to How to setup default value "0000-00-00" for "date" type under PostgreSQL?  (Emi Lu <emilu@cs.concordia.ca>)
List pgsql-general
On Wed, 18 Aug 2004, Emi Lu wrote:

> Hello all,
>
> I have a question about "date" & "timestamp" types in PostgreSQL. I want to
> setup the default value '0000-00-00' and "0000-00-00 00:00:00" for them.
> However, it seems that PostgreSQL does not support it. Could someone helps me
> please?

how about using NULL ? You say the correct value is still undefined so
NULL should be right on the spot.

Greetings
Christian

--
Christian Kratzer                       ck@cksoft.de
CK Software GmbH                        http://www.cksoft.de/
Phone: +49 7452 889 135                 Fax: +49 7452 889 136

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: How to setup default value "0000-00-00" for "date" type under PostgreSQL?
Next
From: Ulrich Wisser
Date:
Subject: insert waiting