Re: Like problem - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Like problem
Date
Msg-id 47B32436.3050100@archonet.com
Whole thread Raw
In response to Re: Like problem  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Tom Lane wrote:
> Richard Huxton <dev@archonet.com> writes:
>> Campbell, Lance wrote:
>>> WARNING:  nonstandard use of escape in a string literal
>>> LINE 1: ...ct c1 from t1 where c1 like '%abc\_%';
> 
>> Either indicate you are using an escaped string: LIKE E'%abc\_%'
> 
> Actually that's wrong, what he'd need is LIKE E'%abc\\_%'
> (or omit the E and ignore the warning).

<sigh> need to switch to a better coffee...

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: "Campbell, Lance"
Date:
Subject: Re: Like problem
Next
From: "Bart Degryse"
Date:
Subject: Re: return field from different table conditionally