查询下一个自增id
发表日期:2018-07-18 23:18:41 | 来源: | | 浏览(729) 分类:MYSQL
$sql = "SELECT AUTO_INCREMENT AS next_id FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME= 'user'";
$d = $model->query($sql); print_r($d['next_id']);
查询下一个自增id
发表日期:2018-07-18 23:18:41 | 来源: | | 浏览(729) 分类:MYSQL
$sql = "SELECT AUTO_INCREMENT AS next_id FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME= 'user'";
$d = $model->query($sql); print_r($d['next_id']);