operator

<>

Tests inequality using the conventional SQL spelling. 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