operator

!=

Alternative inequality spelling; prefer <> for standard-oriented examples. Ordinary comparisons with NULL produce unknown. Example target: PostgreSQL 17 and SQLite (local fixture tested).

Formal Syntax & Structure

sql syntaxsql
a != b

Working Example

Example Snippetsql
SELECT 2 != 3;
SQL Reference