1.查看最大的AUTO_INCREMENT

SELECT AUTO_INCREMENT from  information_schema.tables where table_schema='contract' and table_name='contract';

2.修改最大的AUTO_INCREMENT

alter table tablename auto_increment=NUMBER;

相关文章:

  • 2021-05-18
  • 2022-12-23
  • 2021-08-20
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-12
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2021-10-09
相关资源
相似解决方案