Primary key vs unique

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date Start date
Primary key is always unique while unique key isn't necessarily always a
primary key (although it quite often is). One difference is the NOT NULL
constraint (not enforced for UK while it is enforced for PKs) and that table
can have only one primary key but many unique keys.

http://en.wikipedia.org/wiki/Primary_key says it well
 
Back
Top