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

What are oracle functions?

758


How to pass parameters to procedures in oracle?

790


How to select all columns of all rows from a table in oracle?

767


How to grant create session privilege to a user in oracle?

762


How to resolve the ORA-39133 error in Oracle?

786


What are triggers in oracle?

752


please explain.. DB architecture ...

1755


How remove data files before opening a database?

755


How to download oracle database 10g xe?

772


How do I spool in oracle?

719


What is an oracle table?

735


What is a proxy class?

722


What is an external table?

768


Explain the use of ignore option in imp command.

758


Explain a data segment?

827