what is the difference between unique and primary key

Answer Posted / suresh kumar somayajula

Unique Key allows NULL value and a table can have more than
one UNIQUE KEY Constraint.

Primary Key is the combination of UNIQUE+NOT NULL,means it
won't allow NULL Values and a table can have only one
Primary Key.But a table can have Composite Primary Key.

Thank you,
Suresh

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use events with zebedee, ssh or stunnel?

540


What types of questions are asked in NIC(Natinal Informatics Centre)'s interview?If any one has any information about this,I would be very thankful to him/her.....

1431


How can you perform pattern matching in sql?

545


What are the differences between drop, truncate and delete commands?

551


What is a form used for in a database?

502






What is the purpose of queries in a database?

541


What is n tier architecture in dbms?

471


What are the different types of keys in the database?

473


What are the database skills?

502


Why do we need database?

503


Explain the functionality of dml compiler.

597


What is a candidate key in dbms?

491


What is the largest component of a database?

694


What are cursors give different types of cursors?

492


What is 2-tier architecture?

493