Does SQL Server jump leaves when using a composite clustered index?

后端 未结 2 1574
挽巷
挽巷 2021-01-20 04:14

Consider the following composite clustered index:

CREATE UNIQUE CLUSTERED INDEX ix_mytable ON mytable(a, b)

Obviously, a separate index on

2条回答
  •  粉色の甜心
    2021-01-20 05:19

    No, there is no jumping over a clusters of 'a'. An index can be used only if the leftmost column is specified, otherwise a full scan needs to be employed.

    Oracle has the so called 'Index Skip Scan' operator.

提交回复
热议问题