【发布时间】:2012-11-14 06:39:27
【问题描述】:
我需要改变这个功能
public function getScripts($page, $section){
$data = Yii::app()->db->createCommand()
->select('*')
->from('scripts')
->where("page_id='$page' and section_id='$section'")
->queryAll();
return $data;
}
进入 MySQL 中的存储过程。我将如何在 Yii for MySQL 中执行此操作。
【问题讨论】:
-
我看过了,对我来说,那个帖子有点混乱,谢谢
标签: php mysql function stored-procedures yii