delimiter //
create procedure f(in pid int,out pct int)
begin
delete from test where id=pid;
select count(id) from test into pct;
end//
delimiter ;
call f(4,@name);
select @name;
tobi_
相关分类