获取添加数据的自增ID

$id= DB::select("select auto_increment from information_schema.`TABLES` where table_name='student' and TABLE_SCHEMA='monthexe'");

 

posted @ 2019-04-07 10:41  你的男孩  阅读(731)  评论(0编辑  收藏  举报