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

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

pgsql-novice by date

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

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