SELECT Auto_increment FROM information_schema.`TABLES` WHERE Table_Schema='数据库名' AND table_name = '表名' limit 1;

posted on 2020-10-10 00:15  文种玉  阅读(468)  评论(0编辑  收藏  举报