copy with escape

Поиск
Список
Период
Сортировка
От blackwater dev
Тема copy with escape
Дата
Msg-id 34a9824e0802251820s33da06bg752ccfabd4db49ea@mail.gmail.com
обсуждение исходный текст
Ответы Re: copy with escape
Re: copy with escape
Список pgsql-general
I have data that I'm running through pg_escape_sting in php and then adding to stdin for a copy command.  The problem is "O'reilly" is being changed to "O''Reilly" in the string and then in the db.  I saw with the copy command I can specify the escape but it isn't working for me.  Should this command fix this double 'single' quote issue when I put it in the db?  And what is the proper syntax?

COPY mytable FROM stdin with escape



Thanks!

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Windows 8.3 installer leaves a debug flag on?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: copy with escape