Difference between primary key and unique key ?

Answer Posted / tom

There is two difference between them.

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 ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add another datafile to a tablespace?

584


Why we use bulk collect in oracle?

543


what is the difference between functional dependecy and multilevel dependency?

2000


List the various oracle database objects?

605


What privilege is needed for a user to create indexes in oracle?

582






Why cursor variables are easier to use than cursors?

577


I creat Credit memo in AR. Now i want revers the Credit Memo.how you can revers that what out any aditional entry.

1866


can u plz provide me oca sql dumps please i need them

1476


Explain about your project and its relation to the current job position you are applying to?

554


How do you store pictures in a database?

568


What are the different types of synonyms?

607


How can I convert single byte kana characters into multi byte kana characters and vice-versa.

1945


How to see free space of each tablespace?

598


What are the ways tablespaces can be managed and how do they differ?

1628


How to use like conditions in oracle?

577