mysql最简单的存储过程
作者:互联网
drop procedure if exists pro2;
create procedure pro2()
begin
DECLARE param VARCHAR(100);
set param='你好';
if param='你好' then
select NOW();
elseif param='我好' then
select NOW();
else
select NOW();
end if;
end;
--调用
CALL pro2();
标签:存储,end,mysql,pro2,param,procedure,简单,NOW,select 来源: https://www.cnblogs.com/139jz-cn/p/15503631.html