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 -> Oracle Text, wildcards AND escape characters help

Oracle Text, wildcards AND escape characters help

From: <jimi_xyz_at_hotmail.com>
Date: 19 Sep 2005 11:17:47 -0700
Message-ID: <1127153867.661675.98520@g14g2000cwa.googlegroups.com>


Hi,
Here is what im trying to do, the SQL statement looks like this..

select count(projectid) from project
where contains(objectives, 'agent', 1) >0;

COUNT(PROJECTID)


              70



select count(projectid) from project
where contains(objectives, 'agent%', 1) >0;

COUNT(PROJECTID)


              90


Now this is what im looking for...

select count(projectid) from project
where contains(objectives, '{agent%}', 1) >0;

This SQL statement works, but it escapes the wildcard; my question is how do I make the wildcard valid? If this statement actually used the wildcard it should return a count of 90, but it only returns a count of 70. Any ideas or help will be apprieciated.

Thank you,
jimi Received on Mon Sep 19 2005 - 13:17:47 CDT

Original text of this message

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