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

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

WBOY
Release: 2016-06-13 13:46:51
Original
942 people have browsed it

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))

先谢谢各位了。

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template