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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Find % in where like statement

Re: Find % in where like statement

From: Paul Wagner <wagner_at_cs.umn.edu>
Date: 8 Apr 1999 15:32:56 GMT
Message-ID: <7eii78$5kl$1@news1.tc.umn.edu>


I can't find any way of escaping the % in a LIKE string so that it's not considered just another wild card marker. If anyone else knows if there's a way of doing this, please post.

An office mate notes that you can do what you need with INSTR; e.g.

select *
from account_data
where INSTR(increase, '%') > 0;

Paul

---

Pete Cruz <petec_at_eden.com> wrote:
>How would query a table using the like and look for a % value?
>
>Select *
>from account_data
>where increase like '% % %';

--

*    *    *    *    *    *    *    *    *    *    *    *    *    *    *    *
* Paul J. Wagner                School   - wagner_at_cs.umn.edu               *
* Computer Science Department   Work     - wagnerp_at_uwstout.edu             *
* University of Minnesota                                                  *
*    *    *    *    *    *    *    *    *    *    *    *    *    *    *    *
Received on Thu Apr 08 1999 - 10:32:56 CDT

Original text of this message

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