Home >Backend Development >PHP Tutorial >Yii调用mysql存储过程解决方案

Yii调用mysql存储过程解决方案

WBOY
WBOYOriginal
2016-06-13 10:07:21833browse

Yii调用mysql存储过程
各位大虾,有谁知道怎么用Yii去调用Mysql的存储过程,不管是用DAO还是用AR都行。

以下是小弟做的存储过程代码:
CREATE PROCEDURE `report_monthly`(IN dep varchar(8),IN start_date varchar(10),IN end_date varchar(10),IN report_type varchar(1))

先谢谢各位了。

------解决方案--------------------
我调用了,感觉效果不太对

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn