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
Explain joins in oracle?
How to write date and time literals in oracle?
How would you best determine why your MVIEW couldnt FAST REFRESH?
How to create a table index?
How to create a single index for multiple columns?
What is open database communication (odbc) in oracle?
What is the difference between hot backup and cold backup in oracle?
Describe the types of sub query?
What privilege is needed for a user to connect to oracle server?
What is the difference between view and materialized view in Oracle?
How to get a create statement for an existing table?
What are the uses of synonyms?
What is raw datatype?
What are the set operators union, union all, minus & intersect meant to do?
Explain do view contain data?