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

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

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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-08-24 19:16:00 Re: [NOVICE] Authentication problems
Previous Message michael 2004-08-24 18:38:07 DATE column doesn't like empty string or null value