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

# SMALLINT

> SMALLINT is a 2-byte signed integer.

SMALLINT is a 2-byte signed integer. The value range is \[-32768, 32767].

## Examples

Create a table with a `SMALLINT` column.

```sql theme={null}
CREATE TABLE smallintDemo (
    pk SMALLINT COMMENT "range [-32768, 32767]"
) ENGINE=OLAP
DUPLICATE KEY(pk)
DISTRIBUTED BY HASH(pk) BUCKETS 1;

INSERT INTO smallintDemo VALUES (32767);
```

```Plaintext theme={null}
MySQL > SELECT * FROM smallintDemo;
+-------+
| pk    |
+-------+
| 32767 |
+-------+
```


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