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

while i take backup using ibm tsm the following errors occurred: rman-03009 ora-19513 ora-27206 ora-19502 ora-27030 ora-ora19511

3877


How to create a new user account in oracle?

588


What are the built-in functions used for sending Parameters to forms ?

2850


What is bulk load in oracle?

604


Explain the use of parfile option in exp command.

530






Can we create database in oracle using command line ?

588


Explain oracle’s server parameter file.

575


How to connect to a local oracle 10g xe server?

541


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

657


What is an oracle user account?

589


How can I introduce multiple conditions in like operator?

560


Explain the use of record option in exp command.

544


What is instant client oracle?

548


What are the attributes of the cursor?

565


What is the parameter mode that can be passed to a procedure?

581