Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> function index for like '%string%'
I've created a function index for lower(column_name). However the query does a like comparison rather than equality so the index isn't used. Is there a way to create a function index for this?
Here's the index and query:
create index fx1_auth_users
on auth_users (lower(current_email)
tablespace app01_midx ;
select current_email from auth_users
where lower(current_email) like '%datsit.com%' ;
Thanks much,
Suzy
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Suzy Vordos
INET: lvordos_at_datsit.com
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 Fri Jun 01 2001 - 15:52:35 CDT