Is primary key always clustered?

前端 未结 2 492
轮回少年
轮回少年 2021-02-12 22:37

Please clear my doubt about this, In SQL Server (2000 and above) is primary key automatically cluster indexed or do we have choice to have non-clustered index on primary key?

2条回答
  •  既然无缘
    2021-02-12 23:09

    Nope, it can be nonclustered. However, if you don't explicitly define it as nonclustered and there is no clustered index on the table, it'll be created as clustered.

提交回复
热议问题