| От | Tom Lane |
|---|---|
| Тема | Re: Using COPY |
| Дата | |
| Msg-id | 26117.1021388652@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Using COPY (Joseph Koenig <joe@jwebmedia.com>) |
| Ответы |
Re: Using COPY
|
| Список | pgsql-general |
Joseph Koenig <joe@jwebmedia.com> writes:
> We're converting a db from Access to PostgreSQL for a client - I need to
> export all of his data into postgres on Linux - I'm trying to use the
> COPY command, however, his comment fields have line breaks in them which
> causes the copy to throw a parse error at that line. I'm sure others
> have run into this - is there an easy way to avoid this? Thanks,
You'll need to transform the linebreaks that should be data into \n
(backslash-n) or \LF (backslash-newline) sequences.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера