1 Yii::$app->db->createCommand()->insert('month4_user',['openid'=>$openid,'integ'=>0])->execute(); 2 $id=Yii::$app->db->getLastInsertID(); 3 var_dump($id);
yii框架中获取添加数据后的id值
猜你喜欢
转载自www.cnblogs.com/stj123/p/10282107.html
今日推荐
周排行