Friday, May 27, 2011

Difference between unique and primary key

Unique and primary key enforces the uniqueness of the column.
Primary key creates with index column and unique key as non-cluster index another main difference is primary key not allowed "Null" Values as well as unique key allows one "Null" only.

No comments:

Post a Comment