yii 框架 获取刚刚插入的id
$connection=Yii::app()->db;$command=$connection->createCommand("insertinto`user`set`u...
$connection=Yii::app()->db;
$command=$connection->createCommand("insert into `user` set `username` = '$username',`password`='$password'");
$data=$command->execute();
怎么获取这个id 展开
$command=$connection->createCommand("insert into `user` set `username` = '$username',`password`='$password'");
$data=$command->execute();
怎么获取这个id 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询