1.alter table table_name auto_increment=?;
2.create table table_name(
id auto_increment primay key
)auto_increment=?;
本文介绍了如何使用SQL语句来设置表中自增ID的初始值。提供了两种方法:一种是通过ALTER TABLE修改已存在的表,另一种是在创建新表时直接指定自增ID的起始值。
1.alter table table_name auto_increment=?;
2.create table table_name(
id auto_increment primay key
)auto_increment=?;
2020

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