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

# STRING

> STRING 是字符串类型，最大长度为 65533 字节。

## 描述

字符串，最大长度 65533 字节。

## 示例

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

```sql theme={null}
CREATE TABLE stringDemo (
    pk INT COMMENT "range [-2147483648, 2147483647]",
    us_detail STRING COMMENT "upper limit value 65533 bytes"
) ENGINE=OLAP 
DUPLICATE KEY(pk)
COMMENT "OLAP"
DISTRIBUTED BY HASH(pk);
```

表建成功后通过执行 `desc <table_name>;` 查看表信息，可以看到 STRING 类型为 `VARCHAR(65533)`。


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