operator

EXISTS

Tests whether a subquery produces at least one row, irrespective of selected values. See the SQLite expression documentation for the locally tested form. Example target: PostgreSQL 17 and SQLite (local fixture tested).

Formal Syntax & Structure

sql syntaxsql
EXISTS (subquery)

Working Example

Example Snippetsql
SELECT EXISTS (SELECT NULL);
SQL Reference