Jan 15, 2009

What's the difference between a primary key and a unique constraint?

What's the difference between a primary key and a unique constraint?

Unique key columns may allow null values but the columns of a primary key do not allow null values.
To add more info:
Unique key columns cal allow null values because 2 nulls are never equal.

No comments:

Post a Comment