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: 601
  • 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.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
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