Posts Tags Categories About
Flow Control Function

CASE

CASE WHEN condition THEN result [WHEN ...] [ELSE result] END

IF

IF(condition, trueExpression, falseExpression)