pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedproblem with date
2+ messages / 2 participants
[nested] [flat]
* problem with date
@ 2000-07-10 18:15 Shalini shikha <shalini@ctlno.com>
0 siblings, 1 reply; 2+ messages in thread
From: Shalini shikha @ 2000-07-10 18:15 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: problem with date
@ 2000-07-10 18:17 DalTech - Continuing Technical Education <CTE@Dal.Ca>
parent: Shalini shikha <shalini@ctlno.com>
0 siblings, 0 replies; 2+ messages in thread
From: DalTech - Continuing Technical Education @ 2000-07-10 18:17 UTC (permalink / raw)
To: Shalini shikha <shalini@ctlno.com>; +Cc: pgsql-sql
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-07-10 18:17 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-07-10 18:15 problem with date Shalini shikha <shalini@ctlno.com>
2000-07-10 18:17 ` DalTech - Continuing Technical Education <CTE@Dal.Ca>
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