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

# LineAsString

> LineAsString 格式文档

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

## 描述

`LineAsString` 格式会将输入数据的每一行都视为一个字符串值。
这种格式只能用于解析仅包含一个 [String](https://clickhouse.com/docs/zh/reference/data-types/string.md) 类型字段的表。
其余列必须设置为 [`DEFAULT`](https://clickhouse.com/docs/zh/reference/statements/create/table#default)、[`MATERIALIZED`](https://clickhouse.com/docs/zh/reference/statements/create/view#materialized-view)，或省略。

## 使用示例

```sql title="Query" theme={null}
DROP TABLE IF EXISTS line_as_string;
CREATE TABLE line_as_string (field String) ENGINE = Memory;
INSERT INTO line_as_string FORMAT LineAsString "I love apple", "I love banana", "I love orange";
SELECT * FROM line_as_string;
```

```text title="Response" theme={null}
┌─field─────────────────────────────────────────────┐
│ "I love apple", "I love banana", "I love orange"; │
└───────────────────────────────────────────────────┘
```

## 格式设置
