1 格式
select auto_increment from information_schema.tables where table_schema='数据库名' and table_name='表名';
2 示例
select auto_increment from information_schema.tables where table_schema='bookstore' and table_name='book';
select auto_increment from information_schema.tables where table_schema='数据库名' and table_name='表名';
select auto_increment from information_schema.tables where table_schema='bookstore' and table_name='book';