operator

IS DISTINCT FROM

Null-safe inequality: two nulls are not distinct. Example target: PostgreSQL 17 and SQLite (local fixture tested).

Formal Syntax & Structure

sql syntaxsql
a IS DISTINCT FROM b

Working Example

Example Snippetsql
SELECT NULL IS DISTINCT FROM 1;
SQL Reference