在oracle中垂直显示结果 [英] displaying results vertically in oracle
本文介绍了在oracle中垂直显示结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我迷上了mysql的\ G功能,当从具有很多列的表中进行选择时,我发现它非常有用. oracle中是否有类似的功能,可将每一列显示在自己的行上?人们通常如何处理这个问题?
I'm enamored with mysql's \G feature which I find very useful when SELECTing from tables with many columns. Is there a similar feature in oracle which displays each column on its own line? How do people normally deal with this issue?
推荐答案
我使用例如:
SQL> exec print_table('select * from emp where empno=7839')
EMPNO : 7839
ENAME : KING
JOB : PRESIDENT
MGR :
HIREDATE : 17-nov-1981 00:00:00
SAL : 100
COMM : 500
DEPTNO : 10
-----------------
PL/SQL procedure successfully completed.
这篇关于在oracle中垂直显示结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文