Thursday, July 30, 2015

What is the difference between a unique constraint and a primary key?

What is the difference between a unique constraint and a primary key?

Primary Key Unique Constraint
None of the fields that are part of the primary key can contain a null value. Some of the fields that are part of the unique constraint can contain null values as long as the combination of values is unique.

No comments:

Post a Comment