Difference between primary key and unique key ?

Answer Posted / mohammad ali

-The column holding the primary key constraint cannot accept
null values.whereas colum holding the unique constraint can
accept null values.
-We can declare only one primary key in a table
but a table can have multiple unique key
-Clustered index is created on Primary key constraint and
non clustered unique indexes is created on Unique key constraint.
-Primary key columns automatically become NOT NULL (unique
keys can contain nulls).

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

master table and child table performances and comparisons in Oracle ?

1668


How do you store pictures in a database?

563


query optmization techniques and quwry analyser+projects+ppts

1932


Can I create users through internet explorer in oracle 10g?

573


What are advantages of dateset in datastage?

1748






How do I recompile a procedure in oracle?

527


Explain parameter file in oracle.

580


What is an external table?

588


How to create id with auto_increment on oracle?

547


What privilege is needed for a user to create views in oracle?

593


How to invoke the data pump export utility?

565


What is the Tune Query

1847


What is oracle rownum?

522


Where are the settings stored for each instance in oracle?

629


How to rebuild an index in oracle?

556