> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-1d264819.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Values 格式文档

# Values

| 输入 | 输出 | 别名 |
| -- | -- | -- |
| ✔  | ✔  |    |

<div id="description">
  ## 描述
</div>

`Values` 格式会将每行输出为方括号括起来的形式。

* 各行之间以逗号分隔，最后一行后不加逗号。
* 方括号内的值也以逗号分隔。
* 数字以十进制格式输出，不带引号。
* 数组输出为 `[]`。
* 字符串、日期和日期时间会带引号输出。
* 转义规则和解析方式与 [TabSeparated](/zh/reference/formats/TabSeparated/TabSeparated) 格式类似。

格式化时不会插入额外空格；但解析时允许空格并会将其跳过 (数组值内部的空格除外，此处不允许空格) 。
[`NULL`](/zh/reference/syntax) 表示为 `NULL`。

以 `Values` 格式传递数据时，至少需要转义以下字符：

* 单引号
* 反斜杠

这是 `INSERT INTO t VALUES ...` 中使用的格式，但也可以用来格式化查询结果。

<div id="example-usage">
  ## 示例用法
</div>

<div id="format-settings">
  ## 格式设置
</div>

| 设置                                                                                                                                          | 描述                                                                        | 默认值    |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------ |
| [`input_format_values_interpret_expressions`](/zh/reference/settings/formats#input_format_values_interpret_expressions)                     | 如果字段无法由流式解析器解析，则运行 SQL 解析器并尝试将其解释为 SQL 表达式。                               | `true` |
| [`input_format_values_deduce_templates_of_expressions`](/zh/reference/settings/formats#input_format_values_deduce_templates_of_expressions) | 如果字段无法由流式解析器解析，则运行 SQL 解析器，推导出 SQL 表达式的模板，尝试使用该模板解析所有行，然后将其作为表达式解释应用到所有行。 | `true` |
| [`input_format_values_accurate_types_of_literals`](/zh/reference/settings/formats#input_format_values_accurate_types_of_literals)           | 在使用模板解析和解释表达式时，检查字面量的实际类型，以避免可能出现的溢出和精度问题。                                | `true` |
