Difference between primary key and unique key ?

Answer Posted / ankit kumar singh

Primary Key:
* Primary Key can not contain null value
* Clustured index is created in Primary key.
* Primary Key allows Each row in a table to uniquely
identified and insures that no applicable row exists.

Unique Key:

* Unique Key can contain null value.
* More than one Unique key in a table can be declared.
* Non-clustered index is created in unique key.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to filter out duplications in the returning rows using oracle?

644


How many types of cluster table in Oracle?

579


What is a subquery in oracle?

579


Explain self joins in oracle?

564


Which is better Oracle or MS SQL? Why?

5441






Explain drop constraint oracle?

593


What is oracle open database communication (odbc)?

561


How do you get nicely formatted results from an oracle procedure that returns a reference cursor?

556


What is a nvl function? How can it be used?

564


What will be the syntax to find current date and time in format "yyyy-mm-dd"?

570


How to revoke create session privilege from a user in oracle?

559


What is null value in oracle?

638


How to create a stored procedure in oracle?

577


How will you identify oracle database software release?

527


How to call a stored function with parameters?

564