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

# TINYINT

> TINYINT is a 1-byte signed integer.

TINYINT is a 1-byte signed integer. The value range is \[-128, 127].

## Examples

Create a table with a `TINYINT` column.

```sql theme={null}
CREATE TABLE tinyIntDemo (
    pk TINYINT COMMENT "range [-128, 127]",
    pd_type VARCHAR(20)
) ENGINE=OLAP
DUPLICATE KEY(pk)
DISTRIBUTED BY HASH(pk) BUCKETS 1;

INSERT INTO tinyIntDemo VALUES (127, 'Max Value');
```

```Plaintext theme={null}
MySQL > SELECT * FROM tinyIntDemo;
+------+-----------+
| pk   | pd_type   |
+------+-----------+
|  127 | Max Value |
+------+-----------+
```


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