> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/sql-structure/operators/comparison-operators/is-not-null.md).

# IS NOT NULL

## Syntax

```bnf
IS NOT NULL
```

## Description

Tests whether a value is not `NULL`. See also [NULL Values in MariaDB](/docs/server/reference/data-types/null-values.md).

## Examples

```sql
SELECT 1 IS NOT NULL, 0 IS NOT NULL, NULL IS NOT NULL;
+---------------+---------------+------------------+
| 1 IS NOT NULL | 0 IS NOT NULL | NULL IS NOT NULL |
+---------------+---------------+------------------+
|             1 |             1 |                0 |
+---------------+---------------+------------------+
```

## See also

* [NULL values](/docs/server/reference/data-types/null-values.md)
* [IS NULL operator](/docs/server/reference/sql-structure/operators/comparison-operators/is-null.md)
* [COALESCE function](/docs/server/reference/sql-structure/operators/comparison-operators/coalesce.md)
* [IFNULL function](/docs/server/reference/sql-functions/control-flow-functions/ifnull.md)
* [NULLIF function](/docs/server/reference/sql-functions/control-flow-functions/nullif.md)
* [CONNECT data types](/docs/server/server-usage/storage-engines/connect/connect-data-types.md#null-handling)

<sub>*This page is licensed: GPLv2, originally from*</sub> [<sub>*fill\_help\_tables.sql*</sub>](https://github.com/MariaDB/server/blob/main/scripts/fill_help_tables.sql)

{% @marketo/form formId="4316" %}
