Difference between primary key and unique key ?

Answer Posted / manoj routh

Both primary key and unique enforce uniqueness of the column
on which they are defined. But by default primary key
creates a clustered index on the column, where are unique
creates a nonclustered index by default. Another major
difference is that, primary key doesn't allow NULLs, but
unique key allows one NULL only.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

756


Who developed oracle & when?

760


Whether any commands are used for months calculation? If so, what are they?

851


why dont we assign not null constraint as table level constraint.

2502


What is set operator oracle?

727


Why packages are used in oracle?

794


Explain the blob datatype?

810


What is the difference between a hot backup and a cold backup in oracle?

783


What is catalog in Oracle?

900


What are the general rules on data consistency?

778


How to select some columns from a table in oracle?

747


What is recovery manager(rman) backup in Oracle?

900


What is the difference between formal parameters and actual parameters?

754


How much memory your 10g xe server is using?

828


What is enter substitution variable in oracle?

796