Re: Seeking rows whit \

From: Francisco Reyes <lists(at)stringsutils(dot)com>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Seeking rows whit \
Date: 2008-05-19 03:52:52
Message-ID: cone.1211169172.189653.52265.1000@zoraida.natserv.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 works
select * from mytable where f1 ~ $$\\$$;
select * from mytable where f1 like $$%\\%$$;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message samslists@gmail.com 2008-05-19 06:33:11 Re: Setting up phppgadmin under https/ssl (Apache)
Previous Message Gurjeet Singh 2008-05-19 02:48:47 Re: Seeking rows whit \