From: | Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net> |
---|---|
To: | Patrick Hatcher <PHatcher(at)macys(dot)com> |
Cc: | PgSQL Novice ML <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: COPY returns Bad timestamp external rep.. |
Date: | 2002-05-23 22:54:21 |
Message-ID: | 1022194461.22629.33.camel@rebel |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Thu, 2002-05-23 at 17:40, Patrick Hatcher wrote:
> Howdy,
> I'm trying to import data from an external database that has the date
> formatted as such: 2002-05-20 00.00.01. When I try to import the data, I
> get the Bad Timestamp external representation error. I would usually
> remove the time section, but for this particular table I need down to the
> second. Could someone point me in the right direction?
Do you know perl or python? awk might even be able to, say,
convert all of the periods in the 6th & 7th fields to colons.
> TIA
>
>
> CREATE TABLE "xmlpricetest" (
> "upc" int8 NOT NULL,
> "unit_price" float8,
> "compare_price" float8,
> "price_value" float8,
> "price_indicator" int2,
> "start_date" timestamp,
> "end_date" timestamp
> ) WITH OIDS;
--
+---------------------------------------------------------+
| Ron Johnson, Jr. Home: ron(dot)l(dot)johnson(at)cox(dot)net |
| Jefferson, LA USA http://ronandheather.dhs.org:81 |
| |
| "I have created a government of whirled peas..." |
| Maharishi Mahesh Yogi, 12-May-2002, |
! CNN, Larry King Live |
+---------------------------------------------------------+
From | Date | Subject | |
---|---|---|---|
Next Message | Rory Campbell-Lange | 2002-05-23 23:14:59 | Re: query problem - get count in related table |
Previous Message | Patrick Hatcher | 2002-05-23 22:40:50 | COPY returns Bad timestamp external rep.. |