Unique key vs. unique index on SQL Server 2008

前端 未结 7 1504
抹茶落季
抹茶落季 2021-02-01 00:59

I have a table called countries and I define the country_name column to be unique by creating a “Index/Key” of type “Unique Key” on SQL Server 2008 R2.

7条回答
  •  时光说笑
    2021-02-01 01:14

    There is no difference between unique index or a unique constraint and also there is no performance difference. However there are some differences for creation where some index creation options are not available for unique constraints.

提交回复
热议问题