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...

If we declare constraints Unique and Not null on a single
column then it will act as a Primary key, so what is the use
of primary key??

Answer Posted / neha sinha

1) Primary key creates clustered index and unique key
creates non-clustered index. Performance wise clustered
index is fast so we need Primary key.
2)if we need more then one primary key in table than we can
use unique key+NOT NULL becous it behave as Primary key but
we cant define more than one column as primary key. :)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is not in sql?

952


What has stored procedures in sql and how we can use it?

1083


What is pl sql and why it is used for?

1113


What are types of exception?

922


What is integrity in sql?

1051


how to enter binary numbers in sql statements? : Sql dba

978


what is datawarehouse? : Sql dba

1024


Can we use ddl statements in stored procedure sql server?

1014


Can cursors be part of a trigger body?

1641


what are enums used for in mysql? : Sql dba

1171


Explain the commit statement.

1163


What is dcl in sql?

965


How to disable a trigger name update_salary?

1267


what is offset-fetch filter in tsql? : Transact sql

952


what are all the different normalizations? : Sql dba

1047