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 / radhika

A table can hava multiple Unique constraints but only one
primary key.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rownum in sql?

559


What is rtm in testing?

576


Explain some predefined exceptions.

588


What is sql select statement?

505


Explain isolation levels. : Transact sql

579






How do I save a stored procedure?

526


Inline the values in PL/SQL, what does it mean.?

633


Does view contain data?

618


Is sql open source?

545


Explain about various levels of constraint.

525


What are pl sql data types?

551


What is indexing in sql and its types?

545


What is out parameter used for eventhough return statement can also be used in pl/sql?

586


What do you mean by query optimization?

549


How do you use collections in procedure to return the resultset?

1788