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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
How to create a table in a specific tablespace?
sql query to get zero records from a table
What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.
does the query needs a hint to access a materialized view?
What are the different types of database objects?
What is the difference between implicit index and explicit index?
structural difference between bitmap and btree index ?
Explain the use of analyse option in exp command.
List out the difference between commit, rollback, and savepoint?
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
When do you get a .pll extension in oracle?
HI, Please let me know the syllabus for Oracle OCA and OCP Certification