sqlplus中的列表输出继续在其他行中

时间:2018-01-11 10:07:01

标签: oracle sqlplus

可以使用sqlplus向我显示查询的列表输出,如下所示:

columnA    columnB    columnC
--------   --------    ----------
is a tr    for me i   do you like
y that     s and ex    these
you hav    ample
e

我尝试使用专栏,但无论如何我都看不到。 谢谢!

2 个答案:

答案 0 :(得分:0)

好的是设置换行。很抱歉给您带来不便。 感谢

答案 1 :(得分:0)

COLUMN也有效,不是吗?

SQL> column cola format a10
SQL> column colb format a10
SQL> column colc format a10
SQL>
SQL> with test as
  2    (select 'is a try that you have' cola,
  3            'for me is an example'   colb,
  4            'do you like these'      colc
  5     from dual)
  6  select * from test;

COLA       COLB       COLC
---------- ---------- ----------
is a try t for me is  do you lik
hat you ha an example e these
ve


SQL>