Display vertica records vertically in vsql
Asked Answered
F

1

5

I am look for a command in vsql which is equivalent of \g in mysql console, because I need display the result set vertically, looking like this:

enter image description here

Fulmer answered 25/8, 2015 at 11:33 Comment(0)
G
10

You need to use the \x option.

For more formatting options use the \help command .

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
Gene answered 25/8, 2015 at 12:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.