存储过程: 
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的值
 
 
答案
call proc_t(@uname,@upwd,5);
select @uname,@upwd ;
 
这个是网上找的,实际我没有测试过

相关文章:

  • 2022-12-23
  • 2021-09-09
  • 2022-01-25
  • 2022-12-23
  • 2021-11-12
  • 2021-06-23
猜你喜欢
  • 2021-09-28
  • 2022-01-28
  • 2022-02-08
  • 2022-12-23
  • 2022-02-24
相关资源
相似解决方案