What is the difference between UNIQUE CONSTRAINT and
PRIMARY KEY?

1. There is no difference.
2. A PRIMARY KEY cannot be declared on multiple columns.
3. A UNIQUE CONSTRAINT cannot be declared on multiple
columns.
4. A table can have multiple PRIMARY KEYS but only one
UNIQUE CONSTRAINT.
5. A table can have multiple UNIQUE CONSTRAINTs but only
one PRIMARY KEY.

Answer Posted / sdp

A table can have multiple UNIQUE CONSTRAINTs but only
one PRIMARY KEY.

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are hotfixes and patches?

529


What is the current version of postgresql?

560


What is the purpose of cursors in pl/sql?

638


What is sqlservr exe?

482


what is the difference between char and varchar data types? : Sql dba

543






What is the advantage of index in sql?

541


What is the difference between function and procedure in pl/sql?

546


How do you know if a relationship is 2nf?

520


What is dense_rank?

540


Why primary key is required?

559


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

722


How can a function retun more than one value in oracle with proper example?

588


Can there be more than one function with a similar name in a pl/sql block?

550


What is type and rowtype in pl sql?

538


What are the types of subqueries?

573