Web Building Question:

What is the difference between primary key and unique key?

Tweet Share WhatsApp

Answer:

This is an index that cannot be NULL, Primary Keys are used in building relationships between tables in a database. (an index is automatically created on the primary key). The difference between primary and ordinary keys is that there can be multiple keys, but only one primary key. Unique Key: Unique and Index are same, the difference is, in Unique, duplicate are not allowed in any circumstances and that is enforced by database server. Primary key(s) qualify to be Unique on basis of their uniqueness.

Download Web Building PDF Read All 7 Web Building Questions
Previous QuestionNext Question
What is a URL?How can I make sure that my pages look the same in every browser?