日期:2014-05-16  浏览次数:20532 次

oracle函数索引

?

???????????索引对select语句的巨大性能提高,但是如果在where语句中,在索引列上有函数操作时,普通的索引并不会发生作用,需要使用函数索引来影响执行计划;

select * from scott.app_user where abs(user_id) = 100000;


create index app_user_abs_id on app_user(user_id); //对上面语句性能没有改善

create index app_user_abs_id on app_user(abs(user_id)); //对应函数索引。提高带函数语句效率


?