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

how we can use more then one primary key in Single Table

Answer Posted / mukesh

Its impossible to create two primary key in a single table
but if we use composite key we have do it just like that

CREATE TABLE Test (id1 INT NOT NULL, id2 INT NOT NULL, name
CHAR(20) NOT NULL, PRIMARY KEY(id1,id2));

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between now() and current_date()?

960


How do I enable mysqli extension?

989


How to create a table?

979


What are the advantages and disadvantages of using mysql?

979


Is mysql a nosql database?

1097


How can we convert between Unix & MySQL timestamps?

941


How many rows mysql can handle?

923


How to present a past time in hours, minutes and seconds?

1029


How do I rename a table in mysql?

954


What is the storage engine for mysql?

948


What are the differences between innodb and myisam engines?

962


How can you change the password of a mysql user?

943


Which software is used for mysql?

959


Is mysql written in c?

883


Write a query to display current date and time?

903