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
Post a Comment