Re: COPY: how to use "," as a delimeter?

Поиск
Список
Период
Сортировка
От frbn
Тема Re: COPY: how to use "," as a delimeter?
Дата
Msg-id 3D50DA8D.5070903@efbs-seafrigo.fr
обсуждение исходный текст
Ответ на COPY: how to use "," as a delimeter?  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список pgsql-general
Jean-Christian Imbeault a écrit:
> I have a CSV file that I would like ti import into pgsql. Unfortunately
> the data has been exported in the following format:
>
> "filed1","filed2","field3"
>
> furthemore the data also contains the odd " (quote) and in the CSV file
> it has been turned into "".
>
> How can I import this data? I have tried COPY but can't find the right
> delimeter to use ...


In the last resort, sed is your friend

http://linux.ctyme.com/man/man2377.htm

http://unxutils.sourceforge.net/






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

Предыдущее
От: Jean-Christian Imbeault
Дата:
Сообщение: COPY: how to use "," as a delimeter?
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: design question - newbie