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

-Both are Unique means they do not accept duplicate value.

-Primary key by default Clustered Index where as Unique Key
is a Non-Clustered Index.

-Primary Key does not accept null value where as Unique Key
accept only one Null Value.

-A table can have only one Primary Key where as A table can
have multiple Unique Key.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can sql servers link to other servers like oracle?

789


Explain external key management in sql server 2008

847


Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?

1004


What is a raid and what are different types of raid configurations?

1202


What are cursors stored procedures and triggers?

935


When cursors are useful?

1037


What is the return type of executeupdate ()?

857


What triggers long term care?

991


What is sql profiler. What are the default templates with it? : sql server database administration

950


Why should you use or avoid select * statements?

967


How to add a new dsn with the odbc driver for sql server?

1009


List the different normalization forms?

928


Do you know the capabilities of cursors?

1075


What is user defined stored procedures?

877


Define clusters?

997