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


Please Help Members By Posting Answers For Below Questions

15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

1699


What is control file used for?

600


How to rebuild an index in oracle?

546


How to retrieve data from an explicit cursor?

557


How to get a list of all background sessions in the database?

531






How to join two tables in a single query using oracle?

560


How do we display rows from the table without duplicates?

542


What are the uses of a database trigger?

516


What are the four Oracle system processes that must always be up and running for the database to be useable?

589


please explain.. DB architecture ...

1557


Explain enable novalidate constraint.

595


What is the recommended interval at which to run statspack snapshots, and why?

2430


What is set operator oracle?

524


How to invoke the original export import utilities?

503


How to define a record variable to store a table row?

575