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
what is a join? : Sql dba
Can we join 3 tables in sql?
What are the methods of filing?
What are all the common sql functions?
Name some usages of database trigger?
Explain the commit statement.
What is a memo field?
Explain unique key in sql.
How many sql commands are there?
what is a composite key ? : Sql dba
How does a trigger work?
explain what is mysql? : Sql dba
What is primary key and unique key?
Explain the working of foreign key?
Explain the update statement in sql