我尝试以spool
一种很好的方式输出,所以我将所有 VARCHAR2 列格式化为 a5。但是,我有问题的列是:SLOTNUM
NUMBER(2)FEEADJUSTMENT
类型和 NUMBER(5,2) 类型。我的代码是:
column SLOTNUM format 999;
column FEEADJUSTMENT format 999.9;
.........
column [other VARCHAR2] format a5;
select * from allTables;
结果是:
SLOTNUM DATEV ACTUA NOTES FEEADJUSTMENT TREAT NAME
------- ----- ----- ----- ------------- ----- -----
12 19-JU 19-ju Treat 2.5 12345 Flu
N-13 n-13 ment 6 Shot
00:00 succe
:00 ssful
l
15 20-JU 20-ju Appar 5.5 12345 Flu
N-13 n-13 atus 6 Shot
02:00 broke
:00
FEEADJUSTMENT
占用的空间超出了它的需要。为什么不format 999.9
截断FEEADJUSTMENT
列?