Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

LineAsStringWithNames

输入 输出 别名

说明

LineAsStringWithNames 格式与 LineAsString 格式类似,但会输出包含列名的表头行。

使用示例

Querysql
CREATE TABLE example (
    name String,
    value Int32
)
ENGINE = Memory;

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

SELECT * FROM example FORMAT LineAsStringWithNames;
Responseresponse
name    value
John    30
Jane    25
Peter    35

格式设置

Navigation