问题:
I have a limited exposure to DB and have only used DB as an application programmer.我对 DB 的接触有限,并且只将 DB 用作应用程序程序员。 I want to know about Clustered
and Non clustered indexes
.我想了解Clustered
和Non clustered indexes
。 I googled and what I found was :我用谷歌搜索,我发现的是:
A clustered index is a special type of index that reorders the way records in the table are physically stored.聚集索引是一种特殊类型的索引,它重新排序表中记录的物理存储方式。 Therefore table can have only one clustered index.因此表只能有一个聚集索引。 The leaf nodes of a clustered index contain the data pages.聚集索引的叶节点包含数据页。 A nonclustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk.非聚集索引是一种特殊类型的索引,其中索引的逻辑顺序与磁盘上行的物理存储顺序不匹配。 The leaf node of a nonclustered index does not consist of the data pages.非聚集索引的叶节点不包含数据页。 Instead, the leaf nodes contain index rows.相反,叶节点包含索引行。
What I found in SO was What are the differences between a clustered and a non-clustered index?我在 SO 中发现的是聚集索引和非聚集索引之间有什么区别? . .
Can someone explain this in plain English?有人可以用简单的英语解释一下吗?
解决方案:
参考一: https://en.stackoom.com/question/5Fbg参考二: https://stackoom.com/question/5Fbg