Created
February 5, 2016 07:52
-
-
Save ptrnov/4b383b3f043197537783 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #YII2 Call Procedure | |
| #public function getScripts($page, $section){ | |
| # return Yii::app()->db->createCommand("CALL your_stored_procedure(:page, :section)") | |
| # ->queryAll(array(':page' => $page, ':section' => $section)); | |
| #} | |
| #$command = Yii::app()->db->createCommand('call my_proc("nice day today")'); | |
| #$command->execute(); | |
| #$connection = Yii::$app->db; | |
| #$command = $connection->createCommand('sp_annualupdate'); | |
| #$command->execute(); | |
| END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment