sql 存储过程中的或者语句怎么写

2025-03-01 05:38:35
推荐回答(2个)
回答1:

一:if 条件 then
分支语句1
else
分支语句2
end if;
二:case
when 条件1 then 结果1
when 条件2 then 结果2
[else 其他结果]
end case;

回答2:

if @type='FN' or @type='TF' or @type='IF'