Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
若参数 expr1 成立,返回 expr2,否则返回 expr3。
expr1
expr2
expr3
if(expr1,expr2,expr3);
mysql> select if(false,1,2); +-----------------+ | if(FALSE, 1, 2) | +-----------------+ | 2 | +-----------------+ mysql> select if(false,2.14,2); +--------------------+ | if(FALSE, 2.14, 2) | +--------------------+ | 2.00 | +--------------------+