获取添加数据的自增ID

$id= DB::select("select auto_increment from information_schema.`TABLES` where table_name='student' and TABLE_SCHEMA='monthexe'");
原文地址:https://www.cnblogs.com/wxy0126/p/10664299.html