Re: convert text file to database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: convert text file to database
Дата
Msg-id 9788.1208530192@sss.pgh.pa.us
обсуждение исходный текст
Ответ на convert text file to database  (e-letter <inpost@gmail.com>)
Список pgsql-novice
e-letter <inpost@gmail.com> writes:
> I tried to import the csv file using the command:

> chessmatches=# COPY chessgames FROM '/absolute/path/filename.csv';
> ERROR:  invalid input syntax for integer: "Event..."

Umm ... you didn't tell it the data is in CSV.  I think you need at
least the HEADER option too.  See the COPY manual page:
http://www.postgresql.org/docs/8.3/static/sql-copy.html

            regards, tom lane

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

Предыдущее
От: e-letter
Дата:
Сообщение: convert text file to database
Следующее
От: "Andrej Ricnik-Bay"
Дата:
Сообщение: Re: Remote / network connection fails