Error while importing CSV file

Поиск
Список
Период
Сортировка
От Shadin_
Тема Error while importing CSV file
Дата
Msg-id 1328457856624-5458103.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: Error while importing CSV file  (David Johnston <polobo@yahoo.com>)
Re: Error while importing CSV file  (Lockas <w_ward_w@hotmail.com>)
Re: Error while importing CSV file  (Lockas <w_ward_w@hotmail.com>)
Re: Error while importing CSV file  (Lockas <w_ward_w@hotmail.com>)
Re: Error while importing CSV file  (Lockas <w_ward_w@hotmail.com>)
Re: Error while importing CSV file  (Lockas <w_ward_w@hotmail.com>)
Re: Error while importing CSV file  (Lockas <w_ward_w@hotmail.com>)
Список pgsql-general
am new at dealing with PostgreSQL
I was using PGAdmin and needed to export some data from a query I had run
and then import it in another DB.

*my columns names* : id (int4), name (varchar), time_starp(timestamp)

so I followed these instructions
http://www.question-defense.com/2010/10/15/how-to-export-from-pgadmin-export-pgadmin-data-to-csv

till "Export Configuration window"  , I had to choose the ";" coz the ","
didn't separate the columns right in the csv file.


but when I import this file to another postgreSQL DB by using:
*COPY Table FROM '[insert .csv dir here]' USING DELIMITERS ','  CSV WITH
HEADER*

I got this error :
*ERROR:  invalid input syntax for integer: "id;name;timestamp"*

am not sure whats wrong here


--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Error-while-importing-CSV-file-tp5458103p5458103.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

В списке pgsql-general по дате отправления:

Предыдущее
От: Edwin Quijada
Дата:
Сообщение: Your partner Edwin needs your help!
Следующее
От: David Johnston
Дата:
Сообщение: Re: Error while importing CSV file