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
Can we call stored procedure in function?
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
Write a sql query to find the names of employees that begin with ‘a’?
What is a record in pl/sql?
What is a table?
How to select 10 records from a table?
What is package in pl sql with an examples?
Is pl sql useful?
What are stored procedures in mysql?
What are literals in sql server?
Is sql better than access?
What is the difference between function and procedure in pl/sql?
how many sql dml commands are supported by 'mysql'? : Sql dba
how to add a new column to an existing table in mysql? : Sql dba
What is before and after trigger?