1.like 关键字
oracle数据库下,like '%AAA' 是不生效的,'AAA%'是生效的
explain plan for select * from table_Student where name like '%非';
select * from table(DBMS_XPLAN.display)
(参见图一)
explain plan for select * from table_Student where name like '非%';
select * from table(DBMS_XPLAN.display) //查看索引执行效果
(参见图二)
2.oracle like '%XXX'生效——反向索引
Oracle 反向索引 where column like '%xxx
select * from tables where reverse(columnt_name) LIKE ('OL$%')