Yii 11.17 数据库相关操作说明
示例:$result = array(
'id'=>null,
'val'=>0
);
$row1 = Yii::app()->db->createCommand()->insert('test1', $result);
$id = Yii::app()->db->getLastInsertID();
$row2 = Yii::app(...
原创
2018-04-28 10:54:36 ·
177 阅读 ·
0 评论