存储过程和存储函数2

#if语句
if 条件 then 语句
elseif 条件 then 语句
else 语句
end if


#case语句
case 条件
when 条件 then 语句
when 条件 then 语句
else 语句
end case


#loop语句
fn:loop
语句
end loop fn;
leave fn #退出循环


#while语句
fn:while 条件 do
语句
end while fn

猜你喜欢

转载自1055592535.iteye.com/blog/1674125