当前位置: 代码迷 >> Sql Server >> 关于SQLServer创建索引的有关问题
  详细解决方案

关于SQLServer创建索引的有关问题

热度:59   发布时间:2016-04-27 14:41:25.0
关于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)
  相关解决方案