type
BOOLEAN
Represents true or false; nullable columns can also hold SQL NULL. SQLite has no separate Boolean storage class. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.
Formal Syntax & Structure
sql syntaxsql
BOOLEANWorking Example
Example Snippetsql
SELECT CASE WHEN CAST('true' AS BOOLEAN) THEN 1 ELSE 0 END;