What's the difference between a Table Scan and a Clustered Index Scan?

后端 未结 3 1528
离开以前
离开以前 2020-12-04 09:37

Since both a Table Scan and a Clustered Index Scan essentially scan all records in the table, why is a Clustered Index Scan supposedly better?

3条回答
  •  爱一瞬间的悲伤
    2020-12-04 10:24

    A table scan has to examine every single row of the table. The clustered index scan only needs to scan the index. It doesn't scan every record in the table. That's the point, really, of indices.

提交回复
热议问题