Rick - No you can't parameterize it because Oracle will actually build an index based on your function. That is a physical index populated with actual data. If the Oracle optimizer was smart enough to handle the parameter, then it would be smart enough to not need the function-based index in the first place. However, you could create multiple function-based indexes to cover several situations. Of course, if you get carried away and create many, complex function-based indexes, then your insert and update performance may suffer. Dennis Williams DBA Lifetouch, Inc. [EMAIL PROTECTED]
-----Original Message----- Sent: Tuesday, April 09, 2002 1:23 PM To: Multiple recipients of list ORACLE-L 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 -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: 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: DENNIS WILLIAMS 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).