> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# BOOLEAN

> BOOL, BOOLEAN

BOOL, BOOLEAN

Like TINYINT, 0 stands for false and 1 for true.

## Examples

Create a table with a `BOOLEAN` column. Note that the database converts `TRUE` to `1` and `FALSE` to `0`.

```sql theme={null}
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);
```

```Plaintext theme={null}
MySQL > SELECT * FROM booleanDemo;
+------+--------+
| pk   | ispass |
+------+--------+
|    1 |      1 |
|    2 |      0 |
|    3 |      1 |
|    4 |      0 |
+------+--------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.