sqlplus - Equivalent of MySQL's \G in Oracle's SQL*Plus -


in oracle's sql*plus, results of select displayed in tabular manner. there way display row in key-value manner (like mysql's \g option)?

the database working on (the schema not defined me) has bunch of columns named e.g. yn_enabled (yn = yes no) char(1). when query result like

id_mytable   y y y ------------ - - - 3445         y n y 

so it's not clear columns have values (without having schema open in window).

not built in sql plus, tom kyte has provided procedure called print_table this. run this:

sql> exec print_table ('select * mytable id_mytable=123');  , see results like:  id_mytable      : 123 yn_enabled      : y yn_something    : n ... 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -