--参考:
http://community.csdn.net/Expert/topic/4233/4233129.xml?temp=8.403957E-03

解决方案 »

  1.   

    select top 10000 * from table1 where label1 like '001%' order by index1.
    --这句使用了索引,所以速度较快select * from (select top 10000 * from table1 where label1 like '001%' order by index1) as a where a.name like '%名称%'
    --这句可能 SQL 在做分析时忽略了索引,而进行全表扫描,你试试在子查询里面强制使用索引;
    我刚才试了一下我机器上的 900000 条数据,语句跟你的一样,但是它同样使用了索引; 在子查询中强制使用索引试试(具体语法不清楚,只知道 Oracle 的):