How can a Non-Clustered index output a column that is not included in the index

后端 未结 2 1620
名媛妹妹
名媛妹妹 2021-01-16 11:38

Viewing the Execution plan, i see \"column A\" in the Output List. The operation is an Index Scan on a Non-Clustered Index : \"IX_name\"

When i see the definition of

2条回答
  •  天涯浪人
    2021-01-16 12:11

    Internally, a non-clustered index contains all key columns of the clustered key. This is to support the key lookup operation and to ensure that internally each index row has a unique key. For heaps each NCI contains the row bookmark for the same reasons.

提交回复
热议问题