Re: Date datatype

From: "Iain" <iain(at)mst(dot)co(dot)jp>
To: "Achilleus Mantzios" <achill(at)matrix(dot)gatewaynet(dot)com>, "Pablo Digonzelli" <pdigonze(at)sa-sanmiguel(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Date datatype
Date: 2004-12-21 10:07:44
Message-ID: 000601c4e744$ed43c350$7201a8c0@mst1x5r347kymb
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

or,

# update table set birthdate = to_date('2000-01-01','YYYY-MM-DD');

I'm not sure which is better though I tend to do it this way.

regards
Iain
----- Original Message -----
From: "Achilleus Mantzios" <achill(at)matrix(dot)gatewaynet(dot)com>
To: "Pablo Digonzelli" <pdigonze(at)sa-sanmiguel(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Sent: Tuesday, December 21, 2004 5:38 PM
Subject: Re: [SQL] Date datatype

>O Pablo Digonzelli έγραψε στις Dec 20, 2004 :
>
>> 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.
>
> # update table set birthdate = '2000-01-01';
>
>>
>> TIA
>> Pablo
>>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>>
>
> --
> -Achilleus
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2004-12-21 11:16:44 Re: linux clusters and pgsql
Previous Message Kenneth Gonsalves 2004-12-21 09:59:02 linux clusters and pgsql