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 不为 NULL,返回 expr1,否则返回 expr2。
expr1
expr2
ifnull(expr1,expr2);
mysql> select ifnull(2,4); +--------------+ | ifnull(2, 4) | +--------------+ | 2 | +--------------+ mysql> select ifnull(NULL,2); +-----------------+ | ifnull(NULL, 2) | +-----------------+ | 2 | +-----------------+