Re: Date datatype

From: Együd Csaba (Freemail) <csegyud(at)freemail(dot)hu>
To: 'Pablo Digonzelli' <pdigonze(at)sa-sanmiguel(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Date datatype
Date: 2004-12-21 06:18:27
Message-ID: 0I920097F6ULQ8@mail.vnet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,
I think the problem is the double quote you use. Try a single quote e.g.:

update yourtable set birthdate='200-01-01' where ...

This man must be a very old one... :)

I tried it using timestamp not date, but I think it should work as well.

bye,
-- cs.

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of Pablo Digonzelli
Sent: Tuesday, December 21, 2004 12:41 AM
To: pgsql-sql(at)postgresql(dot)org
Subject: [SQL] Date datatype

hi all,
Ca anyone send me an example how to update a date datatype?
for example
update table set birthdate = "200-01-01" doesnt work.

TIA
Pablo

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 2004.12.17.

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 2004.12.17.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 2004.12.17.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 2004.12.17.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2004-12-21 08:38:03 Re: Date datatype
Previous Message Theo Galanakis 2004-12-21 05:25:54 Re: diff databases