Monday, March 16, 2009

What is the difference between primary key and unique key?

Primary key are entity integrity constraints Primary key allows each row in a table to be uniquely identified and ensures that no duplicate rows exist and no null values are entered. Unique key constraint is used to prevent the duplication of key values within the rows of a table and allow null values.

No comments:

Post a Comment

c4 Code