Re: problem with date

From: "DalTech - Continuing Technical Education" <CTE(at)Dal(dot)Ca>
To: "Shalini shikha" <shalini(at)ctlno(dot)com>
Cc: "Pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: problem with date
Date: 2000-07-10 18:17:38
Message-ID: 003201bfea9b$93ad45a0$5911be86@cte.Dal.Ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

----- Original Message -----
From: Shalini shikha <shalini(at)ctlno(dot)com>
To: <pgsql-sql(at)postgresql(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bernie Huang 2000-07-10 18:52:26 Timestamp problem
Previous Message Shalini shikha 2000-07-10 18:15:45 problem with date