8/6/12

Difference Between Primary key and Unique key


Unique Key :
Unique key is a single column or set of columns that can uniquely identify a row in table.
It Doesn't allow duplicates
It Allows Null values

Primary Key :
Primary key doesn't allow Null values
It doesnt allow duplicates

0 comments:

Post a Comment