Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Function based index
Rick_Cale_at_teamhealth.com wrote:
>
> Hi,
>
> If I have a function based index such as
> CREATE INDEX emp_idx01 on emp(SUBSTR(first_name,1,20))
>
> Is there a way to build index where 1,20 portion can be parameterized? If
> so how would this be done?
>
> Thanks
> Rick
>
No. The function is simply applied to the column when the index is created, so it's fairly 'static'. My guess is that the index could possibly be used for a search on substr(first_name, 1, 10), à la like 'something%' but I have not tried it.
-- Regards, Stephane Faroult Oriole Software -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Stephane Faroult INET: sfaroult_at_oriole.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 Tue Apr 09 2002 - 14:48:28 CDT
![]() |
![]() |