WHAT IS THE DIFFERENCE BETWEEN PRIMARY KEY(PK) CONSTRAINT
AND UNIQUE KEY(UK) + NOT NULL(NN) CONSTRAINT ASSIGN TO A
COLUMN ?
INSTEAD OF ASSIGNING PK ,WE CAN ASSIGN UK + NN TO A COLUMN.
WHAT ARE THE MARRITS AND DEMARITS BETWEEN THE ABOVE TWO?THE
ABOVE TWO ARE SAME,THEY DON'T ALLOW DUPLICATE AS WELL AS
NULL VALUES.
Answer Posted / shwetalguglanicse
Primary key can be assigned to only 1 column in the table but
this is not with unique key
And UK allow duplicate value but PK does not .
| Is This Answer Correct ? | 2 Yes | 8 No |
Post New Answer View All Answers
What are the roles of dba?
How can you use check constraints for self referential integrity?
How to compare dates in oracle sql?
What happens to the current transaction if the session is killed?
How to lock and unlock a user account in oracle?
What is an oracle user account?
Is java required for oracle client?
How to create a new view in oracle?
what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?
What is sharded cluster?
How to rebuild an index in oracle?
What do you mean by merge in oracle?
What are the different oracle database objects?
Can we use oracle pl/sql block in core java? if so how? pls get back to me .....
 How to use an oracle sequence generator in a mapping?