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.
BOOLEAN 类型用 0 表示 false,1 表示 true,与 TINYINT 相同。
CREATE TABLE booleanDemo ( pk INT COMMENT "Sort Key", ispass BOOLEAN COMMENT "true/false" ) ENGINE=OLAP DUPLICATE KEY(pk) DISTRIBUTED BY HASH(pk) BUCKETS 1; INSERT INTO booleanDemo VALUES (1, true), (2, false), (3, 1), (4, 0);
MySQL > SELECT * FROM booleanDemo; +------+--------+ | pk | ispass | +------+--------+ | 1 | 1 | | 2 | 0 | | 3 | 1 | | 4 | 0 | +------+--------+