like with '\'

From: "Nicolas Paymal" <npaymal(at)instranet(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: like with '\'
Date: 2002-08-22 09:58:06
Message-ID: LJEIJOMPNLMBFJLMFLKACECICFAA.npaymal@instranet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a way to use like for searching a '\' ?
I have a column which contains a windows path ex c:\temp\foo
I 'am searching all entries which contains this path but I never match.
I tried :
like 'c:\temp\foo%'
like 'c:\\temp\\foo%'
like 'c:&\temp&\foo%' escape '&'

is there another way ?

Browse pgsql-general by date

  From Date Subject
Next Message Thomas O'Dowd 2002-08-22 10:24:36 [Fwd: Re: like with '\']
Previous Message Richard Huxton 2002-08-22 09:21:27 Re: FW: Merging databases