> ## 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

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

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

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

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

```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"; │
└───────────────────────────────────────────────────┘
```

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