文章作者 100test 发表时间 2007:03:14 13:59:05
来源 100Test.Com百考试题网
1。尽量不要使用 like %..%
2。对于 like ..%.. (不以 % 开头),Oracle可以应用 colunm上的index
3。对于 like %... 的 (不以 % 结尾),可以利用reverse function index 的形式,变化成 like ..%
代码:
-- 建测试表和Index,注意,重点在于带reverse的function index。同时,一定要使用CBO才行……
Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ sys@mescp> 0select reverse(