Difference between primary key and unique key ?

Answer Posted / priyranjan das

The basic differences between Primary Key and Unique key are as follows.

1) By default Primary Key will generate Clustured Index
whereas Unique Key will Generate Non-Clustured Index.

2) Primary Key is a combination of Unique and NOT NULL Constraints so it can’t
have duplicate values or any NUll
Whereas for Oracle UNIQUE Key can have any number of NULL whereas for SQL
Server It can have only one NULL

3) A table can have only one PK but It can have any number of UNIQUE Key.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oracle rowcount?

812


How to rollback the current transaction in oracle?

762


Hi friends can u send the oracle 9i full version download link?????????????? please reply ?

1618


Explain integrity constraints?

853


What is oracle thin client?

751


What are the restrictions in a oracle read only transaction?

752


Why use resource manager in Oracle?

858


What are the system predefined user roles?

772


What are the logical operations?

874


What is columnar storage what is the advantage?

722


What is oracle server autotrace in oracle?

841


What are the oracle built-in data types?

750


Explain parameter file in oracle.

766


What is oracle datasource?

739


How index is implemented in oracle database?

757