Difference between primary key and unique key ?

Answer Posted / prashant t.

First difference is that primary key doesn't accept null
values whereas unique accepts one or multiple.
second difference is that Clustered index is created on
Primary key constraint and non clustered unique indexes is
created on Unique key constraint.

Is This Answer Correct ?    320 Yes 94 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are truncate and delete commands same? If so why?

812


How to use existing values in update statements using oracle?

769


How to call a sub procedure?

796


What are named parameters?

778


what happened to the global index when I truncate the data in one of the partition?

1702


how to clone 9i Database on to 10g Database.

2052


Can we commit inside a function in oracle?

710


How to test null values?

829


Difference between hot backup vs. Cold backup?

759


What are the restrictions in a oracle read only transaction?

749


What are oracle functions?

756


What is bind variable in oracle 11g?

771


How to calculate date and time differences in oracle?

741


How can you merge two tables in oracle?

728


Explain database link?

846