If the value of an expression cannot be determined, the result is NULL:
mysql> mysql> SELECT 1/0; +------+ | 1/0 | +------+ | NULL | +------+ 1 row in set (0.00 sec) mysql>