boystar
#1、IF表达式
IF(condition,expr1,expr2)
//如果condition成立返回expr1,否则返回expr2

#2、IFNULL表达式
IFNULL(expr1,expr2)
//如果expr1不为空返回expr1,为空返回expr2

#3、IF/ELSE表达式
IF condition1 THEN 
    XXX
ELSEIF condition2 THEN 
    XXX
ELSE 
    XXX
END IF

 

分类:

技术点:

相关文章: