查询语句中的索引作用
索引使用疑问:
表Product
聚集索引 CreateTime index1
非聚集索引 Class + SubClass index2
Color index3
Size index4
查询语句如下:
select * from Product where Color = 'R' and Class = '100'
使用到的索引 index2 , index3
我有点疑问的是既然数据页是由索引页指向的,那么应该就是从 index3出发,指向数据页; 但是如果用到2个索引的话,就是说index3出发,然后指向index2?
(是否在一句Sql中只能用到一个(组)索引?)
请高手指点,谢谢。