Re: How to setup default value "0000-00-00" for "date"

From: Christian Kratzer <ck-lists(at)cksoft(dot)de>
To: Emi Lu <emilu(at)cs(dot)concordia(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to setup default value "0000-00-00" for "date"
Date: 2004-08-20 06:58:26
Message-ID: 20040820085717.N65897@vesihiisi.cksoft.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)cksoft(dot)de
CK Software GmbH http://www.cksoft.de/
Phone: +49 7452 889 135 Fax: +49 7452 889 136

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ulrich Wisser 2004-08-20 07:02:13 insert waiting
Previous Message Karsten Hilbert 2004-08-20 06:33:11 Re: How to setup default value "0000-00-00" for "date" type under PostgreSQL?