From: | Scott Marlowe <smarlowe(at)g2switchworks(dot)com> |
---|---|
To: | Jim Fu <Jim(dot)Fu(at)LogixCom(dot)com> |
Cc: | Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: to_date |
Date: | 2006-02-13 21:26:38 |
Message-ID: | 1139865997.22740.164.camel@state.g2switchworks.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Mon, 2006-02-13 at 15:22, Jim Fu wrote:
> Thank you Michael for the info!
>
> I have the original date info as mmddyy, when I use copy tabname from filename, it fails due to mismatch between raw date info and date data type in the database. It seems like I had to convert the raw date info to be like 'yyyy-mm-dd' to match PostgreSQL date default format in order to use copy command.
Take a look here:
http://www.postgresql.org/docs/8.1/static/runtime-config-client.html#GUC-DATESTYLE
and here:
http://www.postgresql.org/docs/8.1/static/datatype-datetime.html
From | Date | Subject | |
---|---|---|---|
Next Message | postgres | 2006-02-13 22:52:02 | Re: Switch log (WAL) |
Previous Message | Jim Fu | 2006-02-13 21:22:47 | Re: to_date |