Re: DATE column doesn't like empty string or null value

From: michael(at)floog(dot)net
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: DATE column doesn't like empty string or null value
Date: 2004-08-24 19:48:58
Message-ID: 1093376938.412b9baa89e53@webmail.floog.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Tom,

Thanks for the speedy reply.
I'm going to ssh to my home-box and give this a try right now.

Mike

Quoting Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

> michael(at)floog(dot)net writes:
> > What command can I use to remove all the 01/01/2001 entries in
> every row
> > and leave it blank.
>
> Set the values to NULL, eg
> UPDATE mytab SET datecol = NULL;
>
> regards, tom lane
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2004-08-24 19:54:19 Re: drop all tables in db - without dropdb ?!
Previous Message Tom Lane 2004-08-24 19:16:00 Re: [NOVICE] Authentication problems