Re: UPDATE table: Syntax to Remove Terminal '\n' [RESOLVED] - Mailing list pgsql-general

From Rich Shepard
Subject Re: UPDATE table: Syntax to Remove Terminal '\n' [RESOLVED]
Date
Msg-id alpine.LNX.2.11.1408271610030.11534@localhost
Whole thread Raw
In response to UPDATE table: Syntax to Remove Terminal '\n'  (Rich Shepard <rshepard@appl-ecosys.com>)
List 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 by date:

Previous
From: Ian Barwick
Date:
Subject: Re: UPDATE table: Syntax to Remove Terminal '\n'
Next
From: David G Johnston
Date:
Subject: Re: Atomicity of INSERT INTO ... SELECT ... WHERE NOT EXISTS ...