Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions zh_CN/sql-reference/data-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ Datalayers SQL 提供丰富的数据类型系统,支持数值、时间、布
## Numeric Types

| 类型名称 | 别名 | 备注 |
| ------------- |------------------------------------- |--------------------------------------------------- |
| ------------- |------------------------------------- |-----------------------------------------------|
| INT8 | TINYINT | 单字节整数,范围[-128, 127] |
| INT16 | SMALLINT | 双字节整数,范围[-32768, 32767] |
| INT32 | INT | 四字节整数,范围[-2^31, 2^31-1] |
| INT64 | BIGINT | 八字节整数,范围[-2^63, 2^63-1] |
| UINT8 | TINYINT UNSIGNED | 无符号单字节整数,范围[0, 255] |
| UINT16 | SMALLINT UNSIGNED | 无符号双字节整数,范围[0, 2^16-1] |
| UINT32 | INT UNSIGNED | 无符号四字节整数,范围[0, 2^32-1] |
| UINT64 | BIGINT UNSIGNED | 无符号八字节整数,范围[0, 2^64-1] |
| REAL | FLOAT | 单精度浮点数(四字节) |
| DOUBLE | - | 双精度浮点数(八字节) |
| UINT32 | INT UNSIGNED | 无符号四字节整数,范围[0, 2^32-1] |
| UINT64 | BIGINT UNSIGNED | 无符号八字节整数,范围[0, 2^64-1] |
| REAL | FLOAT | 单精度浮点数(四字节) |
| DOUBLE | - | 双精度浮点数(八字节) |

## Date/Time Types

| Name | Description |
| ------------- |----------------------------------------------------------------------------------- |
| TIMESTAMP | Int64, Timestamp(precision), 可选值为0、3、6、9, 代表秒、毫秒、微秒、纳秒, 缺省值: 毫秒 |
| TIMESTAMP | Int64, Timestamp(precision), 可选值为0、3、6、9, 代表秒、毫秒、微秒、纳秒, 缺省值: 毫秒 |

## Boolean Types

Expand All @@ -41,4 +41,10 @@ Datalayers SQL 提供丰富的数据类型系统,支持数值、时间、布

| Name | Description |
| ------------- |---------------------------------------------------------------------------------- |
| VECTOR | VECTOR(dim),`dim` 代表向量的维度,取值范围为 [1, 16383] |
| VECTOR | VECTOR(dim),`dim` 代表向量的维度,取值范围为 [1, 16383] |

## Binary Type

| Name | Description |
| ------------- |---------------------------------------------------------------------------------- |
| BINARY | BINARY 数据类型。注:最大长度支持4MB |