关于函数索引(function-based index)
函数索引是从8i开始提供的,有了函数索引就可以在索引中使用函数或者表达式了。例:SQL> create table sunwg (id varchar2(10));Table created.[@more@]SQL> insert into sunwg values('a');1 row created.SQL> commit;Commit complete.SQL>create index ind_sunwg on sunwg(id);SQL>select * from sunwg where upper(id) = ‘TOM’;这样的情况下,这个SQL是不会走索引的,因为在ID上面存在函数UPPER,所以只能走全表扫描。但是利用函数索引,上面的SQL也是可以走索引的。SQL>drop index ind_sunwg;SQL>create index