yii框架builder、update、delete使用方法

cwzqhdx 5 0 PDF 2020-12-22 11:12:21

Yii自带的query builder还是很好用的,省去了拼sql的过程,今天在写一个语句的时候遇到这样一个问题 复制代码 代码如下:$connection = Yii::app()->db;$command = $connection->createCommand();$operate_rst = 0;if(!empty($_POST[‘lid’])){ $operate_rst = $command->update(’emg_landing’, $landing_info, ‘lid=:lid’, array(‘:lid’ => $_POST[‘lid’]));}else{ $

用户评论
请输入评论内容
评分:
暂无评论