执行SQL语句需要CDbCommand对象,而该对象由CdbConnection::createCommand()返回,因此. $connection=Yii::app()->db; $command=$connection->createCommand($sql);.
確定! 回上一頁