MySQL if结构

一、语法:
if 条件1 then 语句1;
elseif 条件2 then 语句2;
… … …
[else 语句n;]
end if;
只能应用在begin、end中

二、示例:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_40315481/article/details/104215947
今日推荐