新建查询:
ALTER TABLE `表名` DROP `主键名`;ALTER TABLE `表名` ADD `主键名` int NOT NULL FIRST;ALTER TABLE `表名` MODIFY COLUMN `主键名` int NOT NULL AUTO_INCREMENT,ADD PRIMARY KEY(主键名);
回到数据库刷新一下啊,这样就ok啦!