Mysql语句
if(expr,v1,v2)
其中:表达式 expr 得到不同的结果,当 expr 为真是返回 v1 的值,否则返回 v2.
ifnull(v1,v2);
其中:如果 v1 不为 null,则 ifnull函数返回 v1; 否则返回 v2 的结果。
case<表达式>
when<值1> then<操作>
when<值2> then <操作>
...
else<操作>
end case;
union:UNIO
原创
2020-11-15 12:35:10 ·
329 阅读 ·
0 评论