mysql - How to add multiple primary keys in a single table -


i tried create table fillowing in phpmyadmin. gives error:

"#1075 - incorrect table definition; there can 1 auto column , must defined key"

please 1 me

create table itemlist (     uid varchar(15),     item_id int auto_increment,     item_name varchar(50) not null,     primary key (uid, item_id) ); 


Popular posts from this blog

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -