Hiya all,
i tried making a simple procedure in mysql using phpmyadmin and then tried calling it, but i just couldnt do it.. Though the creation of the proc was successful but when i execute it using call statement i am just unable to do it..
please help me, thanks
This is how i created a procedure:
and now when i try to call it using
I get the following error:
what could be the problem ?
i tried making a simple procedure in mysql using phpmyadmin and then tried calling it, but i just couldnt do it.. Though the creation of the proc was successful but when i execute it using call statement i am just unable to do it..
please help me, thanks
This is how i created a procedure:
Code:
create procedure myProc() begin select avg(id) as avID from learn; end//
Code:
call myProc();
Code:
#1312 - PROCEDURE realin_site.myProc can't return a result set in the given context
Comment