Wednesday, February 25, 2009

Unique Key Vs Primary Key

One difference is that a unique key constraint can be created over columns with null values, while a primary key constraint does not allow null values. The other difference is that there can only be one primary key constraint defined on a table, but there can be multiple unique key constraints defined on a table.

No comments: