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 / mrityunjay kumar

There are difference between Primary key and unique key.

1. Primary key allow not null value where as unique key
allow only one null value.

2. Primary key Creates clustered index where as unique key
creates non clustered index.

3. Primary key is only one in a table where as unique key
is multiple in a table.

4. Primary key is not accept duplicate value where as
Unique key is also not accept any duplicate values, but it
will accept one null value.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is partition in sql server?

972


How to write a query with a left outer join in ms sql server?

924


Explain the properties of the relational tables?

938


Is the log file is a part of file group?

974


What are the differences between stored procedure and view in sql server?

1158


What stored by the master?

903


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

1003


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

894


Differentiate between delete and truncate.

994


What is amo? : sql server analysis services, ssas

1043


how you can configure a running aggregate in SSRS?

184


What is row_number () and partition by in sql server?

1003


What are the properties of the transaction?

968


Explain nested join?

922


How to encrypt data between dialogs?

1030