create index index1 on table1(col1,col2,……);这样如果你的查询条件遵循 where col1= 'x1' and col2='x2' and ...时就会快很多

解决方案 »

  1.   

    create index index1 on table1(col1,col2,……);这样如果你的查询条件遵循 where col1= 'x1' and col2='x2' and ...时就显出效果来了
      

  2.   

    create index index1 on table1(col1,col2,……);这样如果你的查询条件遵循 where col1= 'x1' and col2='x2' and ...时就显出效果来了
      

  3.   

    其实最重要的原因
    我个人认为:因为oracle查询表的时候,只选择一个索引!!!
    所以有时这种索引就比 n 个单独的索引效果好的多
      

  4.   

    我对这个不了解,所以才问问,我想如果SQL语句中的WHERE条件如果同时判断满足三个条件,那是不是三个条件的复合索引就有意义呢?