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