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-10 23:56:32
Message-ID: bddc86151002101556l3dd1f957pf5a2c575332f2309@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On 10 February 2010 23:46, Mike <1100100(at)gmail(dot)com> wrote:
> Using Postgresql ver. 8.3.7
>
> I made a database called "receivables."
> I made a table called "invoice."
> The second column in table "invoice" is called "matter_num" and has a
> data type of "numeric(5,0)".
> When I try to copy data from .csv file to table "invoice" I receive
> the following error message:
>
> ERROR:  missing data for column "matter_num"
>
> But there are numbers (4 digits in length) throughout the whole column
> of the .csv file.
>
> I tried removing all the (") delimiters, but copy failed with the same
> error message.
>
> What am I missing?
> Thank you for your help.
>
> Mike
>

Are you sure the data in the file has more than 1 column?  And could
you provide a sample line from the file, and the COPY command you
used?

Thom

In response to

Responses

pgsql-novice by date

Next:From: MikeDate: 2010-02-11 00:11:53
Subject: Re: COPY from
Previous:From: MikeDate: 2010-02-10 23:46:17
Subject: COPY from

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