mysql中获取下一个自增长的id值 简单的一句话搞定: 其中的 table_schema='wanku' 代表数据库名称 table_name='wankudata' 代表数据表的名称 select auto_increment from information_schema.`tables` where table_schema='wanku' and table_name='wankudata' mysql中获取下一个自增长的id值 简单的一句话搞定: 其中的 table_schema='wanku' 代表数据库名称 table_name='wankudata' 代表数据表的名称 select auto_increment from information_schema.`tables` where table_schema='wanku' and table_name='wankudata';