答案 0 :(得分:8)
您需要使用 \ x 选项。
有关更多格式选项,请使用 \ help 命令。
dbadmin=> select 1,2;
?column? | ?column?
----------+----------
1 | 2
(1 row)
dbadmin=> \x
Expanded display is on.
dbadmin=> select 1,2;
-[ RECORD 1 ]
?column? | 1
?column? | 2
dbadmin=> select 1,2;
?column? | ?column?
----------+----------
1 | 2
(1 row)
dbadmin=> \x
Expanded display is on.
dbadmin=> select 1,2;
-[ RECORD 1 ]
?column? | 1
?column? | 2