Re: COPY from - Mailing list pgsql-novice

From Thom Brown
Subject Re: COPY from
Date
Msg-id bddc86151002101654w677a579bx281dec4fcc412790@mail.gmail.com
Whole thread Raw
In response to Re: COPY from  (Mike <1100100@gmail.com>)
List pgsql-novice
On 11 February 2010 00:20, Mike <1100100@gmail.com> wrote:
> Thom,
>
> Thanks too for your quick response.
>
> Here's the requested data.
> I have modified it to protect personally identifying information.
>
> Line 1 from .csv file:
> "XYZ CO.","5835","WILDSTUFF
> INFO",28706,"11/27/2009","$DOLLARFIGURE","$DOLLARFIGURE",,0.00,0.00
>
> COPY command:
>
> copy invoice from '/home/m1/AR_Mod_1.csv';
>

Ah, you need to specify that it's a CSV file.  Use: copy invoice from
'/home/m1/AR_Mod_1.csv' WITH CSV;

Regards

Thom

pgsql-novice by date:

Previous
From: Mike
Date:
Subject: Re: COPY from
Next
From: Mike
Date:
Subject: Re: COPY from