Re: inserting/updating a field with the contents of a text file
В списке pgsql-novice по дате отправления:
| От | Richard Broersma Jr |
|---|---|
| Тема | Re: inserting/updating a field with the contents of a text file |
| Дата | |
| Msg-id | 27901.67545.qm@web31806.mail.mud.yahoo.com обсуждение исходный текст |
| Ответ на | Re: inserting/updating a field with the contents of a text file (Richard Broersma Jr <rabroersma@yahoo.com>) |
| Список | pgsql-novice |
--- Richard Broersma Jr <rabroersma@yahoo.com> wrote:
Here is a test case:
postgres=# SELECT 'This\nis my\ntext';
WARNING: nonstandard use of escape in a string literal
LINE 1: SELECT 'This\nis my\ntext';
^
HINT: Use the escape string syntax for escapes, e.g., E'\r\n'.
?column?
----------
This
is my
text
(1 row)
postgres=# SELECT $my_quote$This\nis my\ntext$my_quote$;
?column?
-------------------
This\nis my\ntext
(1 row)
postgres=# set standard_conforming_strings = on;
SET
postgres=# SELECT 'This\nis my\ntext';
?column?
-------------------
This\nis my\ntext
(1 row)
postgres=# SELECT $my_quote$This\nis\tmy\ntext$my_quote$;
?column?
--------------------
This\nis\tmy\ntext
(1 row)
postgres=#
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера