Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between primary key & unique index ?

Answer Posted / palash ghosh

1)Primary key creates an implicit culstered index on a
table, unique key does not create any implicit index.
2)Columns defined as primary key does not allow null values,
where as columns defined as unique can allow null values.
3)A table can have just one primary key (can be a composite
key) where as there can be multiple unique columns (keys).
4)Primary key is a unique key with the above mentioned
features.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is explain plan in db2?

1050


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

1535


What is explain in db2?

1078


How can we retrieve the total number of records in RPG & CLLE?

707


What is the use of runstats in db2?

1178


What is the physical storage length of timestamp data type?

1148


How do I create a view in db2?

1074


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

1109


How can you find out the # of rows updated after an update statement?

1154


How to find the maximum value in a column in the db2 database?

1125


Explain in detail about buffer manager and its functionalities?

1141


How to find primary key of a table in db2?

1114


How to connect to db2 database from windows command line?

1136


How do I import data from excel to db2?

1128


What is reorg?

1241