create index i_name on table(col) reverseor using first_rows hint

解决方案 »

  1.   

    for example:before:select * from A where test_name like 'ab%'   create index i_name on aa(id) reverse;after: select * from A where test_name like '%ba' ;
      

  2.   

    create index i_name on aa(id) reverse;=========================================
    你这里的aa(id)是指的哪一列?
      

  3.   

    如果是test_name这列,我试了好像不行。
      

  4.   

    test_name 
    是的.利用反向索引.
    但是前提是.既然是反向.你的字符也要求反着来写:)创建完后把索引分析一下.还要看看你返回的结果有多大.