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 / frank

Can't, but can create primary key with multiple columns:

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

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is mysql a server or database?

906


What is processlist in mysql?

1002


How can you move the master database

2045


What is data type for image in mysql?

870


Which statement is used in a select query for partial matching?

1189


What is mysql optimization?

909


Is mysql case-sensitive?

890


How are mysql timestamps seen to a user?

1020


Is mongodb faster than mysql?

953


What is InnoDB?

1102


Write a command with which mysql table can be repaired

943


What does the file with the extension: frm, myd, and myi contain?

924


What is the purpose of using a heap table?

1118


What is strict mode in mysql?

908


How many rows can a mysql table hold?

1017