PostgreSQL BOOLEAN Type
PostgreSQL BOOLEAN Type is a SQL data type in the Data Types category. PostgreSQL has a native BOOLEAN type with TRUE, FALSE, and NULL. Accepts various input formats. The syntax is column BOOLEAN / BOOL. It returns boolean value. A close relative is INT, which standard integer type. Range: -2147483648 to 2147483647 (signed). Use BIGINT for larger values. A close relative is VARCHAR(n), which variable-length string with a maximum length. Most common string type. Efficient for varying-length data. A close relative is TEXT, which for large text content (up to 65535 bytes in MySQL). Variants: TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT. More about this category: SQL column data types — INT, VARCHAR, TEXT, BOOLEAN, DATE, TIMESTAMP, JSON, DECIMAL. Related Data Types entries: INT, VARCHAR(n), TEXT, BOOLEAN / BOOL, DATE, TIMESTAMP / DATETIME, DECIMAL / NUMERIC, JSON. This page is part of the free SQL Reference documentation covering 762+ statements, functions, and clauses, each with syntax, parameters, return values, and examples for MySQL, PostgreSQL, SQL Server, and SQLite.