Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group