RE: [GENERAL] Empty date field !

From: Greg Youngblood <YoungblG(at)houstoncellular(dot)com>
To: "'Erik Colson'" <beaver(at)glo(dot)be>, Postgres-General <pgsql-general(at)postgreSQL(dot)org>
Subject: RE: [GENERAL] Empty date field !
Date: 1999-07-07 20:46:27
Message-ID: 2B9713A99045D211BB4E0008C7566869DC9C72@SCORPEXC1.houstoncell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

UPDATE tablename SET datefieldname=NULL WHERE conditions=here;
 
I have had to code around this for some web applications I wrote. You can
assign datetime fields a NULL value, but you can't assign it an empty value
(''). Though, I didn't try "" instead of ''.
 
Greg
 

Gregory S. Youngblood
ext 2164
 
 

 

-----Original Message-----
From: Erik Colson [mailto:beaver(at)glo(dot)be]
Sent: Tuesday, July 06, 1999 3:36 PM
To: Postgres-General
Subject: [GENERAL] Empty date field !

Hello !
 
I'm desperately searching how to UPDATE a date-field with an empty value ?
 
I really just want to clear a date field !
 
Please help
thanks !

Browse pgsql-general by date

  From Date Subject
Next Message Roderick A. Anderson 1999-07-07 21:17:14 Re: [GENERAL] July 1999 issue of Sys Admin
Previous Message Kaare Rasmussen 1999-07-07 19:51:54 Re: [GENERAL] July 1999 issue of Sys Admin