Re: ERROR: invalid input syntax for integer: - Mailing list pgsql-novice

From James Hartley
Subject Re: ERROR: invalid input syntax for integer:
Date
Msg-id CAKeNXXuxR37s-Tce1vxDApp-XmveZQqxhdrcXGg5mQZm0nmcyw@mail.gmail.com
Whole thread Raw
In response to ERROR: invalid input syntax for integer:  (e-letter <inpost@gmail.com>)
List pgsql-novice
On Wed, Sep 21, 2011 at 4:04 PM, e-letter <inpost@gmail.com> wrote:
Using the command:

\copy tablename from file.csv

Causes the command terminal error:

 input syntax for integer: "123456,2000-01-01,01:10,"sometext""
CONTEXT:  COPY tablename, line 1, column column2: "123456

What is my mistake please?

Within psql, the following works for me:

\COPY tablename FROM file.csv CSV HEADER

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: ERROR: invalid input syntax for integer:
Next
From: e-letter
Date:
Subject: Re: ERROR: invalid input syntax for integer: