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 does a pl/sql package consist of?

518


How do I add a database to sql?

582


Explain lock escalation? : Transact sql

704


Why we use joins in sql?

540


Do triggers have restrictions on the usage of large datatypes, such as long and long raw?

690






How can we solve sql error: ora-00904: invalid identifier?

699


How do you truncate?

506


What are the differences between in and exists clause?

571


What is primary key in db?

521


How do I count rows in sql?

561


How do I partition a table in sql?

542


What is the difference between alter trigger and drop trigger statements?

602


Can a select statement fire a trigger?

660


What are inner outer left and right joins in sql?

517


How can we implement rollback or commit statement in a trigger?

580