Re: No quoting in copy CSV mode

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: No quoting in copy CSV mode
Дата
Msg-id 200605100100.k4A10sf10857@candle.pha.pa.us
обсуждение исходный текст
Ответ на No quoting in copy CSV mode  (Sean Davis <sdavis2@mail.nih.gov>)
Список pgsql-novice
Sean Davis wrote:
> I have a file that is tab-delimited text that I am trying to load via psql
> \copy (postgresql 8.1).  It contains quotes (and every other character I
> have tried) as well as escapes.  I therefore would like to use the escape
> parameter to COPY, but have no quoting characters be recognized.  However,
> it seems that there is no way to turn off quoting in CSV mode.  Any
> workarounds that folks see?

You use two double-quotes to represent a single double quote in the
data.

--
  Bruce Momjian   http://candle.pha.pa.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

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

Предыдущее
От:
Дата:
Сообщение: Re: Math Operations - DB or App?
Следующее
От: Verena Ruff
Дата:
Сообщение: Re: error handling