I have problems with store procedure in mysql -


i tried nothing works, have store procedure:

drop procedure if exists socios; create procedure socios(in nombre_u varchar(25), out socios int) begin select count(*) socios socio nombre_u=nombre_u;  end 

the condition not working....what can do?

your query,

drop procedure if exists socios; create procedure socios ( in nombre_u varchar(25), out socios int)    begin select count(*) socios socio nombre_u=nombre_u; end; 

should changed :

drop procedure if exists socios; create procedure socios ( in pnombre varchar(25), out psocios int)    begin select count(*) psocios socio nombre_u=pnombre; end; 

your main error variable naming...


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -