//查看数据库版本
select version()
8.0.12
//修改自增值
alter table `database`.table auto_increment=555;
//查看自增值1(只修改where字段后的数据库和数据表名)
//表的基本数据是存放在mysql的information_schema库的tables表中
select auto_increment
from information_schema.tables
where table_schema='skyom-portal' and table_name='portal_sdk_config';
//查看自增值2
show create table `tableName`
PS:
auto_increment_increment:自增值的自增量
auto_increment_offset: 自增值的偏移量
SHOW VARIABLES LIKE 'auto_inc%'
版权声明:本文为qq_40662424原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。