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

How do I rename a procedure?

920


What are the similarities between a function and a procedure?

954


How can you change the password of a mysql user?

1015


How to convert character strings to dates?

1136


Can I use mysql for free?

941


Where is the mysql data directory?

987


What is back end and front end?

950


How can you calculate the sum of any column of a table?

1082


What is the password of mysql?

1013


Give string types available for column?

1050


How many primary keys can be there in a table?

1027


What is procedures in mysql?

989


What is sqlyog?

1074


How many sql dml commands are supported by 'mysql'?

1023


How do I stop a mysql command?

1048