> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# isnotnull

> Checks whether the value is not NULL, returns 1 if it is not NULL, and returns 0 if it is NULL.

Checks whether the value is not `NULL`, returns `1` if it is not `NULL`, and returns `0` if it is `NULL`.

## Syntax

```Haskell theme={null}
ISNOTNULL(v)
```

## Parameters

* `v`: the value to check. All date types is supported.

## Return value

Returns 1 if it is not `NULL`, and returns 0 if it is `NULL`.

## Examples

```plain text theme={null}
MYSQL > SELECT c1, isnotnull(c1) FROM t1;
+------+--------------+
| c1   | `c1` IS NULL |
+------+--------------+
| NULL |            0 |
|    1 |            1 |
+------+--------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.