Перейти к основному содержимому
Перейти к основному содержимому

LineAsStringWithNames

InputOutputAlias

Description

The LineAsStringWithNames format is similar to the LineAsString format but prints the header row with column names.

Example usage

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

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

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

Format settings