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

What is the difference between primary key and candidate key?

942


What is blob in mysql?

955


Write a query to count the number of rows of a table in mysql.

890


How do we delete a row in a table?

924


What is difference between mysql_connect and mysql_pconnect?

976


How to set the time zone for MySQL to particular country time?

3145


What is the use of mysqli_fetch_assoc?

854


How can you handle the –secure-file-priv in mysql?

886


What is trigger in mysql with example?

866


How does mysql encrypt passwords?

849


How to returns the columns and column information pertaining to the designated table.

975


How many primary keys can be there in a table?

943


How would you enter characters as hex numbers?

877


What is the use of count function in mysql?

977


What are the functions used to encrypt and decrypt the data present in mysql?

1013