pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: DalTech - Continuing Technical Education <CTE@Dal.Ca>
To: Shalini shikha <shalini@ctlno.com>
Cc: Pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: problem with date
Date: Mon, 10 Jul 2000 15:17:38 -0300
Message-ID: <003201bfea9b$93ad45a0$5911be86@cte.Dal.Ca> (raw)
References: <183FA749499ED311B6550000F87E206C0F206B@SRV>

Try NULL rather than ''.  '' is not a null in postgres.


----- Original Message ----- 
From: Shalini shikha <shalini@ctlno.com>
To: <pgsql-sql@postgresql.org>
Sent: Monday, July 10, 2000 3:15 PM
Subject: [SQL] problem with date


> How can I insert/update a null value in a date field. If a try a sql
> statement like the following:
> 
> update customer set birth_date = '' where cust_id like 'xyz', I get a
> error message saying: Bad date representation.
> 
> Thanks in advance,
> Shalini




view thread (2+ messages)

Message-ID: <003201bfea9b$93ad45a0$5911be86@cte.Dal.Ca>
Permalink:  ../003201bfea9b$93ad45a0$5911be86@cte.Dal.Ca/
Also on:    postgresql.org/message-id/003201bfea9b$93ad45a0$5911be86@cte.Dal.Ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: CTE@Dal.Ca, shalini@ctlno.com
  Subject: Re: problem with date
  In-Reply-To: <003201bfea9b$93ad45a0$5911be86@cte.Dal.Ca>
  References: <183FA749499ED311B6550000F87E206C0F206B@SRV> <003201bfea9b$93ad45a0$5911be86@cte.Dal.Ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox