Non-Clustered Index on a Clustered Index column improves performance?

后端 未结 3 849
南旧
南旧 2021-02-14 14:16

In SQL Server 2005, the query analyzer has told me many times to create a non-clustered index on a primary ID column of a table which already has a clustered index. After follo

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-14 14:34

    A clustered index will generally be faster, but you can only have 1 clustered index. So if the table already has a clustered index on a different column, then a non-clustered index is the best you can do.

提交回复
热议问题