What is the difference between primary key & unique index ?

Answer Posted / mani

Primary key can be defined only one for a table whereas
number of unique indexes can be defined for a table.

primary key can not have null values but unique can have
null values and to remind one null value can never be equal
to another null value.

Is This Answer Correct ?    23 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between drop table and delete table?

552


What is image copy in db2?

571


What is multi row fetch in db2?

604


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1236


What does db2 plan contain?

573






How can you classify the locks in db2?

636


What is a buffer in memory?

600


What is innodb buffer pool?

564


what is a corelated subquerry?

658


What is the use of db2 optimizer?

611


How can deadlocks be resolved?

542


How to rename a table in DB2 ?

638


Why do we need reorg in db2?

564


What os does db2 run on?

571


What is clone table?

591