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 / chandrasekar.ramasamy

A table can have compite primarykey but only one unique
constraint

Is This Answer Correct ?    0 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the possible values for the boolean data field?

525


What is the usage of distinct keyword?

632


What are the different type of joins in sql?

544


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

542


What are the two characteristics of a primary key?

493






what are aggregate and scalar functions? : Sql dba

552


What is sql and explain its components?

600


describe mysql connection using mysql binary. : Sql dba

552


What is the purpose of cursors in pl/sql?

634


What is a sql instance vs database?

578


what is data integrity? : Sql dba

596


Why functions are used in sql?

513


how to show all tables with 'mysql'? : Sql dba

610


Explain what is a field in a database and record in a database?

611


Why is %isopen always false for an implicit cursor?

568