日期:2014-05-18  浏览次数:20584 次

关于SQLServer创建索引的问题。
select Name ,Time,P1,T1,accloadtime from RT
 where Time>='2011-12-25 13:18:49.000' and Time<'2012-2-1 13:18:49.000' and ID=8
 order by Time desc 如上查询,在TIme上见聚集索引查起来反而慢了,应该如何建快速索引呢?

------解决方案--------------------
the best index for your query :
create index ix_test on RT (time,id) include(name,P1,T1,accloadtime)