Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

LineAsStringWithNamesAndTypes

输入 输出 别名

描述

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 LineAsStringWithNamesAndTypes;
Responseresponse
name    value
String    Int32
John    30
Jane    25
Peter    35

格式设置

Navigation