有人知道Yii 怎么调用存储过程吗

WBOY
Release: 2016-06-13 13:31:28
Original
886 people have browsed it

有人知道Yii 如何调用存储过程吗?
Yii 有针对存储过程的方法吗?

------解决方案--------------------
当然,可以啊。支持自定义的dao操作。不就意味着可以调用存储过程?

PHP code

$command = Yii::app()->db->createCommand('call myproc("yourname")');
$command->execute(); <div class="clear">
                 
              
              
        
            </div>
Copy after login
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!