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

can u create two Primary key for a table?
--Sivaa

Answer Posted / purushotham

S we can create its called composite key

ALTER TABLE TableName
ADD CONSTRAINT CONSTRAINT _Name
PRIMARY KEY (attribute1,attribute2)

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

4137


Is there any property names “isnavigating”?

983


What is asp.net and how it works?

946


Are cookies stored on server or client?

917


Describe the diffeerence between inline and code behind?

957


What is HTTPModule and HTTPcontext? What is the use of each?

2505


What are query strings used for?

895


Explain how dot net compiled code will become platform independent?

921


What are the differences between primary foreign and unique keys?

1010


How do you handle server controls?

1084


What is the meaning of TestApi?

1025


Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

1001


What is the base class from which web forms are inherited?

948


How is application management and maintenance improved in asp.net 2.0?

952


What is base class of button control in .net?

968