zys2019

改数据库中自增ID起始值

1)建表时指定起始值:

create table users(id int auto_increment primary key,666);

2)直接修改起始值:

alter table users AUTO_INCREMENT=100;

 

分类:

技术点:

相关文章:

  • 2021-09-25
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-06
  • 2021-10-30
  • 2021-08-18
  • 2021-09-27
猜你喜欢
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
相关资源
相似解决方案