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
Are pl sql variables case sensitive?
What are the rules to be applied to nulls whilst doing comparisons?
What is a temp table?
Is sql dba a good career? : SQL DBA
Can we perform dml in function?
What is before trigger?
Is primary key clustered or nonclustered?
Do we need to create index on primary key?
Explain the savepoint statement.
What is the purpose of cursors in pl/sql?
what is index? : Sql dba
What is rank function in sql?
What are the commands used in sql?
How to select random rows from a table?
What is having clause in sql?