Web Building Question:
Download Job Interview Questions and Answers PDF
What is the difference between primary key and unique key?
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 Interview Questions And Answers
PDF
Previous Question | Next Question |
What is a URL? | How can I make sure that my pages look the same in every browser? |