咦?怎么又发了一个贴子
你另外那个贴子,java3344520给你回了啊:

解决方案 »

  1.   

    我知道了,把后面format a20改成for 999999999(你想要表示几位,就写几个9)
      

  2.   

    我来回答你吧。second:
    这种设置只在一个会话当中生效,直接重启或转换会话就ok了,但也可以用clear命令。
    官方语言是:
    COLUMN column_name CLEAR
    or exit from SQL*Plus.
                first:
    oracle文档:
    A NUMBER column's width equals the width of the heading or the width of the FORMAT plus one space for the sign, whichever is greater. If you do not explicitly use FORMAT, then the column's width will always be at least the value of SET NUMWIDTH.SQL*Plus normally displays numbers with as many digits as are required for accuracy, up to a standard display width determined by the value of the NUMWIDTH variable of the SET command (normally 10). If a number is larger than the value of SET NUMWIDTH, SQL*Plus rounds the number up or down to the maximum number of characters allowed if possible, or displays hashes if the number is too large.You can choose a different format for any NUMBER column by using a format model in a COLUMN command. A format model is a representation of the way you want the numbers in the column to appear, using 9s to represent digits.
    请自己看看哦。文档才是王道。