Re: How to store empty to Date field ?

From: Andrew Gould <andrewgould(at)yahoo(dot)com>
To: kingking <kingking(at)hknet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to store empty to Date field ?
Date: 2001-09-27 18:59:29
Message-ID: 20010927185929.68048.qmail@web13408.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

To update all existing records with empty values:
update table1
set datefield = null;

To insert an empty value into a new record:
insert into table1 (datefield) values (null);

Best of luck,

Andrew Gould

--- kingking <kingking(at)hknet(dot)com> wrote:
> Dear All,
>
> How to store empty to Date field ?
>
> Thanks
>
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
> (send "unregister YourEmailAddressHere" to
majordomo(at)postgresql(dot)org)

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mohit Rohatgi 2001-09-27 19:01:45 postgres to be run over SimOS
Previous Message Bruce Momjian 2001-09-27 18:58:37 Re: Encoding passwords