if you change your script, you will be able to make a rowid match (assuming 
the last/first name combinations are unique). If you don't change the 
script, you will get an index range scan. Oracle will match the 
upper(last_name) and will then have to read every row with that last name 
and do an upper on the first name.




>From: Dennis Taylor <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: Re: function index concepts - urgh
>Date: Mon, 12 Mar 2001 07:31:20 -0800
>
>At 11:25 AM 3/10/01 -0800, you wrote:
> >
> >This should do it.
> >
> >select * from holder
> >where last_name = upper('Taylor')
> >and first_name = upper('Dennis');
>
>Hm. Intuitively then, I should change my index creation script from
>
>(UPPER(LAST_NAME||' '||FIRST_NAME))
>
>to
>
>(UPPER(LAST_NAME)||' '||UPPER(FIRST_NAME))
>
>Or is the optimizer intelligent enough to pull it out of the first example?
>
>
> >
> >And no it's  not Friday, it is now Saturday.  ;)
> >
>
>Go home! Uh, no, wait. It's Monday now.
>
>
>Dennis Taylor
>--------------------------------
>The light at the end of the tunnel is the headlamp of an oncoming train.
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Dennis Taylor
>   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