問題:
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