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 / manikanta

By default primary key maintain clusterd index,All the
records are stored in stored order.By takeing this
advantage query will be execute fast.

Unique maintain nonclusted index,All the records are not in
stored order.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use regular expression in pattern match conditions in oracle?

648


What is a relational database management system?

756


Explain constraining triggers.

702


What are the different types of partitions in oracle?

582


Can you create a synonym without having a table?

641






When system tablespace is created?

691


What is bulk load in oracle?

688


Is oracle a relational database?

606


Explain the use of inctype option in exp command.

673


What are the differences between primary key and unique key?

595


What is the difference between a primary key & a unique key?

676


What is PL/SQL ?

1207


How do I uninstall oracle client from windows?

612


How does the on-delete-cascade statement work?

702


How will you identify oracle database software release?

602