Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to escape % character in LIKE clause

Re: How to escape % character in LIKE clause

From: Eric L. Ma <mlq_at_ndi.net>
Date: Sat, 2 Jan 1999 20:48:19 -0500
Message-ID: <Y0Aj2.2131$xb3.42053@newsfeed.slurp.net>


In the where clause you also have to explicitly specify '\' as the escape character. The exact syntax is:

...WHERE field like '\%' ESCAPE '\'

Eric Ma

skv <skv_at_kpbank.ru> wrote in message news:76kmqk$e69$1_at_home.kpbank.ru...
>zoaibs_at_my-dejanews.com пишет в сообщении <76kjqd$6ha$1_at_nnrp1.dejanews.com>
...
>>Can some one tell me how to search for a field value which contains %; I
mean
>>how to escape % in LIKE clause TIA
>>
> hi
>Just place backslash before %(WHERE fld like '\%')
>
>Regards
>-------------------------
>Konstantin V. Sartakov
>Kuzbassprombank, Kemerovo, Russia
>mailto:skv_at_kpbank.ru
>
>
>
Received on Sat Jan 02 1999 - 19:48:19 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US