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 / adil khan
1.you can assign UK + NN TO A COLUMN behave like PRIMARY KEY(PK)
but (UK + NN) can not make any relation with any other table.
where as PRIMARY KEY(PK) can make relation with others tables.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the difference between alert log file and tarce file ?
Explain cascading triggers.
What is query image?
What is a proxy object?
Describe the types of sub query?
What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar
How to use group functions in the select clause using oracle?
What are the various types of snapshots ?
Can we call procedure inside function in oracle?
How to speed up webrick?
Explain the difference between sql and oracle?
What is the difference between a user and a schema in oracle?
What do database buffers contain?
How do I uninstall oracle client from windows?
How to create a new view in oracle?