Home >Backend Development >PHP Tutorial > 有人知道Yii 怎么调用存储过程吗

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

WBOY
WBOYOriginal
2016-06-13 13:31:28935browse

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

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

PHP code

$command = Yii::app()->db->createCommand('call myproc("yourname")');
$command->execute(); <div class="clear">
                 
              
              
        
            </div>
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