SQL Server Primary key 、clustered index 、 unique

primary key:

  1、主键不可以有空值。

  2、不可以有重复行。

unique :

  1、可以有空行。

  2、不可以有重复行。

clustered index:

  1、可以有重复行。

  2、可以有空行。

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

 

 

 

       

posted on 2014-10-24 20:25  蒋乐兴的技术随笔  阅读(759)  评论(0编辑  收藏  举报

导航