| От | Bruno Wolff III |
|---|---|
| Тема | Re: how to preserve \n in select statement |
| Дата | |
| Msg-id | 20031219212607.GB14968@wolff.to обсуждение исходный текст |
| Ответ на | how to preserve \n in select statement ("Matt Van Mater" <nutter_@hotmail.com>) |
| Список | pgsql-sql |
On Fri, Dec 19, 2003 at 10:06:28 -0500, Matt Van Mater <nutter_@hotmail.com> wrote: > I have a table that has a few text value types, and I enter a bunch of text > with '\n' representing a newline. When I select the records from that > table, postgresql 7.3 represents those \n as newlines and actually outputs > the a newline rather than as a \n as entered. I want to be able to get my > \n text out of the select statement in the exact same manner it was > inserted. If you really want to store \n so that something else will interpret \n as a newline, then use '\\n' in the string constant.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера