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

you accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover? : Sql server administration

1296


How can we delete Duplicate row in table?

1110


What are the differences between clustered and non-clustered index?

1073


How do you delete a data source?

1047


Which command is used for user defined error messages?

1103


What is the usage of the sign function?

1190


What are the basic features of a trigger in ms sql server?

1264


How to return the date part only from a sql server datetime datatype?

1161


What are the types of lock supported by ?

1091


Is sql server difficult to learn?

966


Explain indexes disadvantages?

1137


What are the character string functions supported by sql server 2005?

1072


Explain database normalization?

1266


What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?

1041


How connect excel to sql server?

1049