MySQL Forums
Forum List  »  Spanish

Re: stored procedure vs parámetro de salida
Posted by: Miguel Perez
Date: March 07, 2008 03:52AM

No uso ODBC o ADO, pero debería funcionar. Tienes que capturar la salida con variables de usuario, que luego puedes consultar con SELECT, por ejemplo así:

CREATE PROCEDURE Ejemplo (IN i INT, OUT o INT) DETERMINISTIC
SET o = i + 1;

...

CALL Ejemplo(1, @a);

SELECT @a; ===> 2

Un saludo,

Miguel Pérez
Afina Sistemas - Partner de MySQL en España

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: stored procedure vs parámetro de salida
3438
March 07, 2008 03:52AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.