#1.if函数:if else 的效果*/if (条件表达式,执行语句(true时),执行语句(false时)) ——>类似三元运算符*/ SELECT IF(10>5,’大’,’小’);SELECT last_name,commission_pct,IF(commission_pct IS NULL,’没奖金’,’有奖金’) AS 奖金FROM employees;