例如id time1 time2 type1id为非聚簇索引time1 time2 type1 聚簇索引
id 包含type1的索引——————————————————————
如果我查 id>34 and time1》‘2009 -12-25’ And type1=4
这样的话 数据库 会怎么走索引
也就是我问 sqlsever 走索引的策略是什么?先走哪个再走哪个???
id 包含type1的索引——————————————————————
如果我查 id>34 and time1》‘2009 -12-25’ And type1=4
这样的话 数据库 会怎么走索引
也就是我问 sqlsever 走索引的策略是什么?先走哪个再走哪个???
set showplan_text on
go
查詢語句
go
set showplan_text on
??
INCLUDE 的 这样的索引
要想具体知道 需要看执行计划