alter table table_name change id id int(11) auto_increment;
将表table_name中的主键ID设置成自动增长列。
本文介绍如何使用SQL语句将数据库表中的主键设置为自动增长列,提升数据操作效率。
alter table table_name change id id int(11) auto_increment;
将表table_name中的主键ID设置成自动增长列。
1923
1万+

被折叠的 条评论
为什么被折叠?