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

What are the advantages of oracle?

561


How to use "in" parameter properly?

625


How do we get field detail of a table?

639


What is merge statement used for?

580


In oracle there is column command, how will you explain that?

558






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

1452


How to get a create statement for an existing table?

583


How can I convert single byte kana characters into multi byte kana characters and vice-versa.

1951


How index is implemented in oracle database?

604


What is an oracle transaction?

594


What are the uses of synonyms?

620


Can you create a synonym without having a table?

563


What is a subquery?

622


How many types of synonyms in Oracle?

609


What is Reduced List of Values?

1716