Warning
SingleStore 9.0 gives you the opportunity to preview, evaluate, and provide feedback on new and upcoming features prior to their general availability. In the interim, SingleStore 8.9 is recommended for production workloads, which can later be upgraded to SingleStore 9.0.
ISNULL
On this page
Returns true if the value is NULL.
Syntax
ISNULL (val)(val IS NULL)
Arguments
-
val: any object
Return Type
Boolean
Examples
SELECT ISNULL(NULL), ISNULL(0), (NULL + 0 is NULL), (0 is NULL);
+--------------+-----------+--------------------+-------------+
| ISNULL(NULL) | ISNULL(0) | (NULL + 0 is NULL) | (0 is NULL) |
+--------------+-----------+--------------------+-------------+
| 1 | 0 | 1 | 0 |
+--------------+-----------+--------------------+-------------+
Last modified: February 24, 2023