Топ-100
 

ISNULL

База данных: MySQL
Текст

Syntax:
ISNULL(expr)

If expr is NULL, ISNULL() returns 1, otherwise it returns 0.

URL: https://dev.mysql.com/doc/refman/8.0/en/comparison-operators.html

Пример

mysql> SELECT ISNULL(1+1);
-> 0
mysql> SELECT ISNULL(1/0);
-> 1