The first step is to modify the original table, remove the KID primary key attribute and save it. The second step is to modify the table name of the following corresponding statement and execute it. alter table basecustomer drop column id alter table basecustomer add column id int(11) unsigned not null auto_increment,add primary key (id);
mysql database primary key modification self-increment
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327099318&siteId=291194637
Recommended
Ranking