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 != bWorking Example
Example Snippetsql
SELECT 2 != 3;