【问题标题】:oracle : query output not formattedoracle:查询输出未格式化
【发布时间】:2013-07-16 19:39:54
【问题描述】:
SQL> SELECT TR_NAME,TR_VALUE FROM TBL;

TR_NAME
----------------------------------------------------------------------------------------------------
TR_VALUE
----------------------------------------------------------------------------------------------------
MN2
1

LAST_TS
1374114001657

MN1
100

查询结果未格式化。我无法连接 oracle sql developer。

如何让它可读?

【问题讨论】:

    标签: oracle oracle11g sqlplus oracle-sqldeveloper


    【解决方案1】:

    假设您使用的是 SQL*Plus

    column tr_name format a30
    column tr_value format a30
    

    假设 30 个字符足以显示两列中的数据,并且您的行宽至少为 60 个字符。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-03
      • 1970-01-01
      • 1970-01-01
      • 2015-06-07
      • 2017-08-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多