Yii Framework Forum: Ejecutar Un Stored Procedure - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ejecutar Un Stored Procedure ejecutar un stored procedure Rate Topic: -----

#1 User is offline   newman 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 10-November 12

Posted 16 November 2012 - 10:25 PM

Necesito ayuda en este tema.
Como puedo ejecutar un stored procedure, por el momento no se me ocurre nada. por favor necesito ayuda
0

#2 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 30-July 09
  • Location:Colombia

Posted 19 November 2012 - 07:33 AM

Usando DAO:
Yii::app()-> db->createCommand($sqlDeSP)->execute(); // queryAll si devuelve registros o queryScalar si devuelve un solo dato.



Saludos.
Rick

Support me on Patreon: https://www.patreon.com/yiiframework


Promover Yii Framework en Español en Patreon: https://www.patreon....yiiframework_es

YiiFramework en Español: http://yiiframework.es/ - Canal de YouTube - Facebook
Follow me: @robregonm.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users