Create procedure proc3 (tname in varchar (30), the out result int)
The begin
If (select name, PWD from tb_user t where t.n ame=tname) then
Set the result:=1;
The else
Set the result:=0;
end if;
End
The set @ result:=1;
Call proc3 (" admin ", @ result);
Select @ the result;
