she knows why it isn't being used. What Suzy wants to know (and I do too, 
because I have a similar situation) is if there is a way to create an index 
that will let you search with the like clause.

Unfortunately my gut instinct is that you can't make Oracle do that


>From: "Hillman, Alex" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: RE: function index for like '%string%'
>Date: Fri, 01 Jun 2001 14:11:08 -0800
>
>index is not used because you have leading % in the like predicate.
>
>Alex Hillman
>
>-----Original Message-----
>Sent: Friday, June 01, 2001 5:09 PM
>To: Multiple recipients of list ORACLE-L
>
>
>
>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: [EMAIL PROTECTED]
>
>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: [EMAIL PROTECTED] (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).
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Hillman, Alex
>   INET: [EMAIL PROTECTED]
>
>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: [EMAIL PROTECTED] (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).

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to