> For the complete documentation index, see [llms.txt](https://litedb.gitbook.io/litedb-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://litedb.gitbook.io/litedb-docs/sql/data_types/overview.md).

# 数据类型总览

## 通用数据类型

LiteDB 支持的数据类型如下表所示：

| 数据类型         | 说明            |
| ------------ | ------------- |
| `INTEGER`    | 32 位整数        |
| `BIGINT`     | 64 位整数        |
| `FLOAT`      | 单精度浮点数        |
| `DOUBLE`     | 双精度浮点数        |
| `VARCHAR(n)` | 字符串，`n` 为最大长度 |
| `BOOLEAN`    | 布尔值           |
| `VECTOR(n)`  | 向量，`n` 为维度    |

## 数据类型特殊说明

部分数据类型拥有特殊的表现形式、特性和使用方式，以下分小节详细介绍：

* [VARCHAR(n)](/litedb-docs/sql/data_types/varchar.md)
* [BOOLEAN](/litedb-docs/sql/data_types/boolean.md)
* [VECTOR(n)](/litedb-docs/sql/data_types/vector.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://litedb.gitbook.io/litedb-docs/sql/data_types/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
