Re: date format - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: date format
Date
Msg-id dcc563d10801240741k1e6f62a0lfb5490e018a8310a@mail.gmail.com
Whole thread Raw
In response to date format  (iuri de araujo sampaio <iuri.sampaio@gmail.com>)
List pgsql-sql
On Jan 24, 2008 2:06 AM, iuri de araujo sampaio <iuri.sampaio@gmail.com> wrote:
> hi,
>
> how to change the default format for type date?
> I have created a field on a table:
>
> ##
> create table tbl_inventory (
>         item_id integer constraint c_pk primary key,
>      I.         purchase_date date,
>     II.         fabrication_date date,
>    III.         expiration_date date
> );
> ##
>
> the error i got is:
>
> ##
> Database operation "dml" failed
> (exception ERROR, "ERROR:  invalid input syntax for type date: "2008 7 22 {} {} {} {DD MONTH YYYY}"
> ")
> ##

Can you give us a statement by statement example of what you're doing?Are you actually trying to insert the string
'20087 22 {} {} {} {DD
 
MONTH YYYY}' as a date?


pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: date format
Next
From: "Scott Marlowe"
Date:
Subject: Re: ALTER TABLE DROP CONSTRAINT IF EXISTS ?