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.
If expr1 is NULL, returns expr2.
expr1
ifnull(expr1,expr2);
expr2
mysql> select ifnull(2,4); +--------------+ | ifnull(2, 4) | +--------------+ | 2 | +--------------+ mysql> select ifnull(NULL,2); +-----------------+ | ifnull(NULL, 2) | +-----------------+ | 2 | +-----------------+ 1 row in set (0.01 sec)