operator

BETWEEN

Tests a range including both endpoints. Ordinary comparisons with NULL produce unknown. Example target: PostgreSQL 17 and SQLite (local fixture tested).

Formal Syntax & Structure

sql syntaxsql
a BETWEEN low AND high

Working Example

Example Snippetsql
SELECT 10 BETWEEN 10 AND 20;
SQL Reference