mysql获取一个表中的下一个自增(id)值的方法

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

posted @ 2017-01-02 17:02  阿锋佬  阅读(2516)  评论(0编辑  收藏  举报