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

Why viewstate is used in asp.net?

781


witch is the best insistute in sharpoint course.what abt future of share point course.

3016


What is the difference between a candidate key and primary key?

789


What is application in asp net?

704


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

691


Why do we need Sessions?

783


Explain about secure socket layer?

741


Why is mvc better than asp.net?

795


How we can force all the validation controls to run?

764


Will session work if cookies is disabled?

777


Describe state management in asp.net?

808


What is Dynamic Web and discuss its usage with the help of real life examples?

837


What is the concepts of globalization and localization in .net?

755


Is there any alternative to avoid name collisions other then Namespaces?

868


How does asp net store session ids by default?

747