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

What is oracle and what are its different editions?

576


How would you go about verifying the network name that the local_listener is currently using?

1602


What is the difference between a user and a schema in oracle?

558


Why does Oracle not permit the use of PCTUSED with indexes?

1951


What is a data lock in oracle?

608






List out the components of logical database structure of oracle database.

583


Can we use bind variables in oracle stored procedure?

489


What is the Tune Query

1841


What is a Garbage Collection? and what is full recursive Garbage collection?

2386


What is using clause and give example?

583


What happens to the indexes if a table is recovered?

575


How oracle handles dead locks?

600


How to generate query output in html format?

563


How to store pictures on to the database?

527


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1437