您的位置:首页 > 博客中心 > 数据库 >

SQL Server Primary key 、clustered index 、 unique

时间:2022-03-14 01:31

primary key:

  1、主键不可以有空值。

  2、不可以有重复行。

unique :

  1、可以有空行。

  2、不可以有重复行。

clustered index:

  1、可以有重复行。

  2、可以有空行。

  3、如果指定的列不unique 它会再加一个标志列以使索引变得唯一。

 

 

 

       

热门排行

今日推荐

热门手游