Difference between primary key and unique key ?

Answer Posted / mudigouda patil

PRIMARY KEY
1)TABLE CAN NOT HAVE MORE THAN ONE PRIMARY KEY.
2)PK DOES NOT ALLOW NULL VALUES.
UNIQUE KEY
1)TABLES CAN HAVE MORE THAN ONE UNIQUE KEY.
2)UNIQUE KEY ALLOWS NULL VALUES.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I manually create a database in oracle?

550


Explain what does a control file contain?

619


What is an oracle transaction?

594


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

566


What do you mean by a tablespace?

570






What is the difference between formal parameters and actual parameters?

551


What are the ansi data types supported in oracle?

526


What are the differences between number and binary_float in oracle?

576


What is recycle bin in Oracle?

725


Is primary key indexed by default in oracle?

559


What is a cursor and what are the steps need to be taken?

605


What suggestions do you have to reduce the network traffic?

559


How to start a new transaction in oracle?

596


What is a user role in oracle?

623


What are the logical operations?

684