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 / karthick

PRIMARY KEY AND UNIQUE KEY

* Both Enforces Uniqueness
* Primary key Creates clustered index
unique key creates non clustered index
* primay key does not allows null value
unique key allows 1 null value

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to replace null values in expressions using isnull()?

1150


What is attribute? : sql server analysis services, ssas

1069


Can sub report data source be different from that of the parent report?

149


What it means to be triggered?

1076


How to stop log file growing too big?

1059


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

1120


What is the difference between seek predicate and predicate?

1106


Explain syntax for viewing trigger?

968


When is update_statistics command used?

1085


What are the lambda triggers?

956


How to find out what is the default collation in a database?

1177


What is scalar user-defined function?

1184


What is default constraint?

1051


Can you insert NULL in unique column?

1207


What is transaction server isolation?

1091