> ## 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` フォーマットでは、入力データの各行を 1 つの文字列値として解釈します。
このフォーマットをパースできるのは、[String](/docs/ja/reference/data-types/string) 型の単一フィールドを持つテーブルに限られます。
残りのカラムは [`DEFAULT`](/docs/ja/reference/statements/create/table#default) または [`MATERIALIZED`](/docs/ja/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>
