获取添加数据的自增ID

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

猜你喜欢

转载自www.cnblogs.com/wxy0126/p/10664299.html
今日推荐