📄️ case
CASE 是条件表达式,支持简单 CASE 和搜索 CASE 两种写法。
📄️ coalesce
从左向右返回参数中第一个非 NULL 表达式。
📄️ if
若参数 expr1 成立,返回 expr2,否则返回 expr3。
📄️ ifnull
若 expr1 不为 NULL,返回 expr1,否则返回 expr2。
📄️ nullif
若 expr1 与 expr2 相等,返回 NULL,否则返回 expr1。
AI generated answers are based on docs and other sources. Please test answers in non-production environments.