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

If youre unsure in which script a sys or system-owned object is created, but you know its in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?

1846


What are advantages of dateset in datastage?

1971


How to set a transaction to be read only in oracle?

807


How to build data dictionary view an new database?

776


What is the difference between truncate & delete command?

854


What is the quickest way to export a table to a flat file?

738


What is meant by joins? List out the types of joins.

705


What is an index associated with a constraint?

750


What is connection pooling in oracle?

723


How do I uninstall oracle 11g?

778


What is PL/SQL ?

1353


What are the differences between primary key and unique key?

716


What is instant client oracle?

765


What is the data pump export utility?

834


What is where clause in oracle?

752