Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Function based indexes
Hi,
I have read that on Oracle 8.1.7 it is possible to create a function based index like the one:
Create index ind1 on <table> (substr(<column_name>))
tabelspace ....etc
And if Oracle optimizer is in CBO mode and
query_rewrite_enabled = true
query_rewrite_integrity = trusted
compatible = 8.1.0 or greater
A statement which has a where clause that involve a substr(<colum_name>) should use the index.
(*)I would like to know if it is also possible to create a function
based index on a NVL function that involve a bind variable, because
a have a statement like the one that follow:
select 'x'
from <table>
where <col_name> = nvl(:p_aa, <col_name>)
This statement perform a full table scan on <table>
ps: if (*) is possible could you please give an sintax example?
Thanks
Imma
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 Thu Jul 11 2002 - 17:24:51 CDT