oracle 函数索引

建函数索引
create index tt on xx (upper(name));
commit;

insert into xx values(4,'AA');
insert into xx values(5,'BB');

SELECT * from xx;
select * from xx where upper(name) = 'BB';

一看执行计划没走索引 ,有可能是没有分析表  analyze table

你可能感兴趣的:(oracle)