Re: [GENERAL] Seeking rows whit \

2008-05-18 Thread Francisco Reyes
Gurjeet Singh writes: Thus, writing a pattern that actually matches a literal backslash means writing four backslashes in the statement. Thanks. select * from mytable where f1 like '%%'; Worked. For the archives.. After reading section 4.1.2.2 Also found that these other one also wor

Re: [GENERAL] Seeking rows whit \

2008-05-18 Thread Gurjeet Singh
On Mon, May 19, 2008 at 7:56 AM, Francisco Reyes <[EMAIL PROTECTED]> wrote: > Is there a way to search for rows with the character \? > > I tried variants of like and ~. > > create table mytable (f1 text); > insert into mytable values ('Test row 1'); > insert into mytable values (E'Test row 2 \\'

[GENERAL] Seeking rows whit \

2008-05-18 Thread Francisco Reyes
Is there a way to search for rows with the character \? I tried variants of like and ~. create table mytable (f1 text); insert into mytable values ('Test row 1'); insert into mytable values (E'Test row 2 \\'); select * from mytable where f1 like E'%\\%'; <-- returned nothing select * from myta