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

> LineAsStringWithNames 格式文档

# LineAsStringWithNames

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

<div id="description">
  ## 说明
</div>

`LineAsStringWithNames` 格式与 [`LineAsString`](/zh/reference/formats/LineAsString/LineAsString) 格式类似，但会输出包含列名的表头行。

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

```sql title="Query" theme={null}
CREATE TABLE example (
    name String,
    value Int32
)
ENGINE = Memory;

INSERT INTO example VALUES ('John', 30), ('Jane', 25), ('Peter', 35);

SELECT * FROM example FORMAT LineAsStringWithNames;
```

```response title="Response" theme={null}
name    value
John    30
Jane    25
Peter    35
```

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