Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
Documentation for the Boolean data type in ClickHouse
bool
true
false
SELECT true AS col, toTypeName(col); ┌─col──┬─toTypeName(true)─┐ │ true │ Bool │ └──────┴──────────────────┘ select true == 1 as col, toTypeName(col); ┌─col─┬─toTypeName(equals(true, 1))─┐ │ 1 │ UInt8 │ └─────┴─────────────────────────────┘
CREATE TABLE test_bool ( `A` Int64, `B` Bool ) ENGINE = Memory; INSERT INTO test_bool VALUES (1, true),(2,0); SELECT * FROM test_bool; ┌─A─┬─B─────┐ │ 1 │ true │ │ 2 │ false │ └───┴───────┘
Was this page helpful?