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

# LARGEINT

> LARGEINT 是 16 字节有符号整数，取值范围为 [-2^127 + 1, 2^127 - 1]。

## 描述

16 字节有符号整数，范围 \[-2^127 + 1, 2^127 - 1]。

## 示例

创建表时指定字段类型为 LARGEINT。

```sql theme={null}
CREATE TABLE largeIntDemo (
    pk LARGEINT COMMENT "range [-2^127 + 1 ~ 2^127 - 1]"
) ENGINE=OLAP
DUPLICATE KEY(pk)
DISTRIBUTED BY HASH(pk) BUCKETS 1;

INSERT INTO largeIntDemo VALUES (10000000000000000000000000);
```

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


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