Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> function-based-index doesn' work
SELECT lsbet__kunde_nr FROM lsbet WHERE MOD(lsbet_nr,1000)=0
2) I created a function-based-index :
CREATE INDEX mod_index2lsbet ON lsbet(MOD(lsbet_nr,1000));
3)I made statement
ANALYZE TABLE lsbet CREATE STATISTICS
4) But Oracle doesn't use the index
select lsbet__kunde_nr
from
lsbet where MOD(lsbet_nr,1000)=0
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 38
Rows Row Source Operation
------- ---------------------------------------------------
1000 TABLE ACCESS FULL LSBET Did I make something wrong ? Why Oracle doesn't use the index scan ? Received on Wed Mar 15 2000 - 00:00:00 CST
![]() |
![]() |