摘要: 1、尽量不要使用 like '%..%' 2、对于 like '..%..' (不以 % 开头),Oracle可以应用 colunm上的index3、对于 like '%...' 的 (不以 % 结尾),可以利用 reverse + function index 的形式,变化成 like '..%' 代码建测试表和Index。注意:重点在于带reverse的function index。同时,一定要使用CBO才行......SQL> select reverse('123') from dual;REVERS 阅读全文
posted @ 2011-08-18 08:45 IT鸟 阅读(3125) 评论(0) 推荐(0) 编辑