Difference between primary key and unique key ?

Answer Posted / sunil upadhyay

the basic difference is that primary key can not have null
value whereas Unique key can have null values.two null
value are not same.One table may have more than one Unique
Key Constraint
columns, but should have only one Primary Key Constraint
column.

Is This Answer Correct ?    88 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a new table by selecting rows from another table?

849


Explain the use of inctype option in exp command.

818


What is an oracle transaction?

800


What are the different types of synonyms?

845


Is oracle a relational database?

719


Explain the use of indexes option in exp command.

796


How can you merge two tables in oracle?

760


Why oracle is used?

804


I creat Credit memo in AR. Now i want revers the Credit Memo.how you can revers that what out any aditional entry.

2105


Explain how are indexes update?

847


Explain an exception?

748


Can multiple cursors being opened at the same time?

830


How to use existing values in update statements using oracle?

820


What is the relationship among database, tablespace and data file?

779


How to insert multiple rows with one insert statement in oracle?

805