If all values in the MySQL COALESCE() function are NULL, it returns NULL as output. This means that the function did not find any non-NULL value in the list.
mysql> Select COALESCE(NULL, NULL, NULL, NULL); +----------------------------------+ | COALESCE(NULL, NULL, NULL, NULL) | +----------------------------------+ | NULL | +----------------------------------+ 1 row in set (0.00 sec)
The above is the detailed content of What does the MySQL COALESCE() function return if all arguments supplied to it are NULL?. For more information, please follow other related articles on the PHP Chinese website!