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's the difference between a primary key and a unique
key?

Answer Posted / swapna

Both primary key and unique enforce uniqueness of the
column on which they are defined. But by default primary
key creates a clustered index on the column, where are
unique creates a nonclustered index by default. Another
major difference is that, primary key doesn't allow NULLs,
but unique key allows one NULL only.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is mysql the same as sql server?

988


What is a document index?

1028


explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

900


What is database architecture? : SQL Server Architecture

1045


what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration

908


Explain atomicity?

1060


Explain how to use linked server?

992


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

888


What is temporal data type?

922


Is it possible to have clustered index on separate drive from original table location?

967


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

949


What is blocking?

1067


What is replace and stuff function in sql server?

1067


Can we add an identity column to decimal datatype?

1002


Explain transaction server consistency?

976