UPDATE table: Syntax to Remove Terminal '\n'

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема UPDATE table: Syntax to Remove Terminal '\n'
Дата
Msg-id alpine.LNX.2.11.1408271523400.11534@localhost
обсуждение исходный текст
Ответы Re: UPDATE table: Syntax to Remove Terminal '\n'  (Ian Barwick <ian@2ndquadrant.com>)
Список pgsql-general
   I have some rows in a table where a column attribute has a newline (\n)
appended to the string. How do I represent that newline character in a SQL
statement using psql?

   I've tried adding E'\n' to the end of the string but that doesn't work.

   Here's what I see when I select distinct for that column:

StarvationCrk+


   That's a blank line below the name.

TIA,

Rich


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

Предыдущее
От: Jim Garrison
Дата:
Сообщение: Atomicity of INSERT INTO ... SELECT ... WHERE NOT EXISTS ...
Следующее
От: Ian Barwick
Дата:
Сообщение: Re: UPDATE table: Syntax to Remove Terminal '\n'