Re: invalid input syntax for integer

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: James Nobles <james(at)bolshevikhosting(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: invalid input syntax for integer
Date: 2005-07-10 21:21:41
Message-ID: 10592.1121030501@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

James Nobles <james(at)bolshevikhosting(dot)com> writes:
> This is a sample of the file i'm attempting to load, a simple ascii/csv
> file.

> cat county.csv|more
> county_code,cntyname
^^^^^^^^^^^

Well, that isn't a valid integer, is it?

In PG 8.1 you'll be able to say "CSV HEADER" to make it ignore the first
line of COPY input, but in existing releases I believe there's no
alternative but to remove the header line.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Greg Sabino Mullane 2005-07-10 23:01:09 Re: Coding An SQL Statement
Previous Message Søren Poulsen 2005-07-10 20:39:33 Table Permission?