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

Can mysql and mariadb coexist?

588


How do I automate a backup in mysql?

483


How many concurrent queries can mysql handle?

483


What is max connections in mysql?

497


How do I change a procedure in mysql?

498






I want to find out all databases starting with ‘test’, I have access to?

683


How do I know if mysql is running on windows?

487


what is the difference between the nvl function, ifnull function, and the isnull function? : Mysql dba

537


Can u give the example by taking an unnormalized table and make that 1nf and then 25nf, and then 3 nf?

4217


Which is better mysql or mssql?

486


What is mysql server used for?

489


How much does mysql enterprise cost?

494


Is mysql a free database?

496


How do I truncate all tables in mysql?

496


How do I find mysql database?

493