mysql数据库获取刚插入id,原生数据库

2019-04-15 15:58发布

$sql = "INSERT INTO q_user(username,pic)value('xiaowen','123456')";
mysql_query($sql, $connect);
$id = mysql_insert_id();//获取插入id