Difference between primary key and unique key ?

Answer Posted / alok

There is only two Point:
1. The not null constraint is by default added to primary key, it means, primary key attribute cannot accept null values, whereas, the attribute declared as unique can accept null values. It is the major difference between the two.
2. Secondly, we can have only one primary key in a relation, whereas, multiple attributes can be declared unique at the same time.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about normalization? Explain in detail?

506


HI, Please let me know the syllabus for Oracle OCA and OCP Certification

1959


material view and view disadvantages?

641


What is a table in oracle?

549


How to use subqueries with the in operator using oracle?

621






What is sharded cluster?

530


How to invoke the data pump import utility?

657


What is a system tablespace?

611


Does facebook use oracle?

583


Point the difference between translate and replace?

580


Is oracle the best database?

526


Use of an integrity constraint is better to validate data. Explain

555


Explain how you would restore a database using RMAN to Point in Time?

1645


What is a database table in oracle?

580


In which language oracle has been developed?

659