存储过程: create procedure proc_t(out uname varchar(50),out upwd varchar(50),in uid int) BEGIN select name,pwd into uname,upwd from bbs where id=uid; end ---------- 如何在mysql里调用这个存储过程获得uname,upwd的值