Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Bool

Le type bool est stocké en interne au format UInt8. Les valeurs possibles sont true (1) et false (0).

SELECT true AS col, toTypeName(col);
CREATE TABLE test_bool
(
    `A` Int64,
    `B` Bool
)
ENGINE = Memory;

INSERT INTO test_bool VALUES (1, true),(2,0);

SELECT * FROM test_bool;
Navigation