Re: UPDATE table: Syntax to Remove Terminal '\n' [RESOLVED]

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: UPDATE table: Syntax to Remove Terminal '\n' [RESOLVED]
Дата
Msg-id alpine.LNX.2.11.1408271610030.11534@localhost
обсуждение исходный текст
Ответ на UPDATE table: Syntax to Remove Terminal '\n'  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
On Wed, 27 Aug 2014, Jeff Ross wrote:

> You want the E in front of the entire string, not just before the \n.
> select
> 'Use Discover: ' || E'\t' || 'Yes'  || E'\n'

Jeff,

   That did the trick. Turns out that 202 of 204 rows had the newline! The
syntax that worked:

update benthos set stream = 'StarvationCrk' where stream = E'StarvationCrk\n';

Much appreciated,

Rich


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

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