X-Original-To: pgsql-admin@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 04DF59234F5 for ; Thu, 22 May 2003 12:58:13 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 34952-05 for ; Thu, 22 May 2003 12:58:11 -0400 (EDT) Received: from wolff.to (wolff.to [66.93.249.74]) by developer.postgresql.org (Postfix) with SMTP id 39A1E925184 for ; Thu, 22 May 2003 11:49:06 -0400 (EDT) Received: (qmail 2607 invoked by uid 500); 22 May 2003 15:51:03 -0000 Date: Thu, 22 May 2003 10:51:03 -0500 From: Bruno Wolff III To: "Kovalcik, Mike A [ITS]" Cc: pgsql-admin@postgresql.org Subject: Re: Date question.... Message-ID: <20030522155103.GB1667@wolff.to> Mail-Followup-To: "Kovalcik, Mike A [ITS]" , pgsql-admin@postgresql.org References: <480641561E05E94D9B6CCE1E39AA0300014E06E9@PDAWB06C.ad.sprint.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <480641561E05E94D9B6CCE1E39AA0300014E06E9@PDAWB06C.ad.sprint.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/309 X-Sequence-Number: 8871 On Thu, May 22, 2003 at 10:38:54 -0500, "Kovalcik, Mike A [ITS]" wrote: > Well.... > > I set my table up like... > > Bday date > > Where bday is my column name and date is the data type.... > > I've tried a lot of things to remove it, but I've had no luck: > > UPDATE address SET Bday = '' WHERE addressid = '4' > > This is when it gives me the error, but I'm not sure what else to put > there to make sure it is in date format to remove the date completely... If you are doing things this way then you probably want to use: UPDATE address SET Bday = NULL WHERE addressid = '4'