2011-02-18 62 views

回答

3
delimiter // 

create procedure sample (in id int, out MyCount int) 
begin 
    select count(*) into MyCount 
     from YourTable 
     where YourKey = id; 
end//