Need help with COPY

Поиск
Список
Период
Сортировка
От Jonathan Hseu
Тема Need help with COPY
Дата
Msg-id 20010616025742.A23010@vomjom
обсуждение исходный текст
Ответы Re: Need help with COPY  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
I want to import a table from a file.  The format of the table in the file is as
such:
"FName","LName","Address","City"

The format of the table is:
(FName varchar(80), LName varchar(80), Address varchar(80), City varchar(80))

I want to do a:
COPY table FROM 'filename' USING DELIMITERS ','

The problem is, it also imports the quotes.  Also, there are sometimes commas in
the address, and it takes those as delimiters.  Is there any way to make it take
only the stuff within the quotes and ignore any delimiters within them?

Jonathan Hseu

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Insert and limit
Следующее
От: Dariusz Pietrzak
Дата:
Сообщение: ODBC, ssl, problems with.