MySQL Forums
Forum List  »  MySQL Administrator

Cannot get value of output variable from procedure
Posted by: sophea mom
Date: January 19, 2011 09:57PM

I create a procedure with this comment
create procedure selectProc (out nb int)
begin
select count(*) into nb from department;
End;


Then, i call it by:
call selectProc (@a)
select @a

However, I get null value in phpmyadmin

If i run in mysql console, i got the result.

Anyone knows the reason, please help...
Thanks in advanced

Options: ReplyQuote


Subject
Written By
Posted
Cannot get value of output variable from procedure
January 19, 2011 09:57PM


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.