Difference between primary key and unique key ?

Answer Posted / hemendra singh chaudhary

In the Table a primary key constraint column cannot holding
the null values.whereas unique constraint colum can holding
the null values.
Ex.|--------------------|
| ID(P) | Name(U) | #ID(P) ->It's a Primary Key
|--------------------| * Its a Not Null
| 1 | Hemendra | * A table Contain 1 Primary
| 2 | Neeraj | Key.
| 3 | PremJe | #Name(U)->It's a Unique Key
|NotNull |canbe Null| * Its can contain Null Value
|--------------------| * A table Contain more
than 1 unique Key.

Please Check the Radio Button..........
******************Gud Luck********************

Is This Answer Correct ?    45 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to end the current transaction in oracle?

752


Why we use bulk collect in oracle?

726


What is save point in oracle database?

989


What is an oracle user role?

779


Which is better Oracle or MS SQL? Why?

4399


How to define an anonymous procedure without variables?

744


What is a database table in oracle?

753


State and explain the different types of data models?

708


Explain the use of rows option in exp command.

806


What is the purpose of tables, private synonyms and public synonyms in Oracle?

795


How to create a stored procedure in oracle?

787


Explain cascading triggers.

804


How to use values from other tables in update statements using oracle?

825


How to use an explicit cursor without open statements?

804


Explain what are the advantages of views?

804