Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: A bit of SQL tuning
> I'd be interested to get an opinion on the fastest way to do an indexed
> search on a substring aka I'm looking for the "WHERE MYCOL=%ABCD%"
> functionnality. The underlying table is very huge. I can see several ways
to
> do that
I can't see any ways to do that. If there's a leading % Oracle won't use an index. In any case you'll need to use "like" instead of an equal sign or the query won't find what you want.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Greg Moore INET: sqlgreg_at_pacbell.net Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Jun 07 2001 - 04:10:31 CDT