alter table tb_name modify id int auto_increment primary key 转载于:https://www.cnblogs.com/ada-zheng/p/3741159.html