mysql将主键设置成自动增长

alter table table_name change id id int(11) auto_increment;

将表table_name中的主键ID设置成自动增长列。

猜你喜欢

转载自13636476894.iteye.com/blog/1679887