Re: COPY from

From: Thom Brown <thombrown(at)gmail(dot)com>
To: Mike <1100100(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: COPY from
Date: 2010-02-11 00:54:18
Message-ID: bddc86151002101654w677a579bx281dec4fcc412790@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 11 February 2010 00:20, Mike <1100100(at)gmail(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Mike 2010-02-11 00:56:37 Re: COPY from
Previous Message Mike 2010-02-11 00:20:49 Re: COPY from