首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

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

2012-03-15 
关于SQLServer创建索引的问题。select Name ,Time,P1,T1,accloadtime from RTwhere Time2011-12-25 13:1

关于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)

热点排行