跳到主要内容
跳到主要内容

Vertical

输入输出别名

描述

按指定的列名将每个值打印在单独的行上。此格式适用于仅打印一行或少数几行的情况,尤其是当每行包含大量列时。 NULL 被输出为 ᴺᵁᴸᴸ

示例用法

示例:

SELECT * FROM t_null FORMAT Vertical
Row 1:
──────
x: 1
y: ᴺᵁᴸᴸ

在垂直格式中,行不进行转义:

SELECT 'string with \'quotes\' and \t with some special \n characters' AS test FORMAT Vertical
Row 1:
──────
test: string with 'quotes' and      with some special
 characters

此格式仅适合输出查询结果,但不适合解析(检索数据以插入到表中)。

格式设置