SQL>
SQL> select id,
2 nvl(RECEIPT_AMOUNT,0),
3 nvl(LAST_RETURN_ACCOUNT,0),
4 nvl(NOW_RETURN_ACCOUNT,0),
5 nvl(RECEIPT_GROSS,0),
6 nvl(PROJECT_ARRE_AMOUNT,0),
7 nvl(NOW_SOFTWARE_FORWARD,0),
8 nvl(SOFT_ARREARAGE_AMOUNT,0),
9 nvl(NOW_HARDAPP_FORWARD,0)
10 from test_zhjf_ctrf s
11 where id in
12 ('100080')
13 union
14 select id,
15 nvl(RECEIPT_AMOUNT,0),
16 nvl(LAST_RETURN_ACCOUNT,0),
17 nvl(NOW_RETURN_ACCOUNT,0),
18 nvl(RECEIPT_GROSS,0),
19 nvl(PROJECT_ARRE_AMOUNT,0),
20 nvl(NOW_SOFTWARE_FORWARD,0),
21 nvl(SOFT_ARREARAGE_AMOUNT,0),
22 nvl(NOW_HARDAPP_FORWARD,0)
23 from tb_contract_added_inf f
24 where id in
25 ('100080')
26 /
ID NVL(RECEIPT_AMOUNT,0) NVL(LAST_RETURN_ACCOUNT,0) NVL(NOW_RETURN_ACCOUNT,0) NVL(RECEIPT_GROSS,0) NVL(PROJECT_ARRE_AMOUNT,0) NVL(NOW_SOFTWARE_FORWARD,0) NVL(SOFT_ARREARAGE_AMOUNT,0) NVL(NOW_HARDAPP_FORWARD,0)
---------------------------------------------------------------- --------------------- -------------------------- ------------------------- -------------------- -------------------------- --------------------------- ---------------------------- --------------------------
100080 700000 500000 200000 7743.32320127015 300000 104476.844012405 170454.545454545 1064
100080 700000 500000 200000 7743.32320127015 300000 104476.844012405 170454.545454545 1064
SQL>
做了一下dump,发现同样都是number的列,在这里长度不一致,一边在尾部被加了空格。
SQL>
SQL> select id,
2 dump(trim(RECEIPT_AMOUNT)),RECEIPT_AMOUNT,
3 dump(RECEIPT_AMOUNT),RECEIPT_AMOUNT,
4 dump(nvl(LAST_RETURN_ACCOUNT,0)),
5 dump(nvl(NOW_RETURN_ACCOUNT,0)),
6 dump(nvl(RECEIPT_GROSS,0)),
7 dump(nvl(PROJECT_ARRE_AMOUNT,0)),
8 dump(nvl(NOW_SOFTWARE_FORWARD,0)),
9 dump(nvl(SOFT_ARREARAGE_AMOUNT,0)),
10 dump(nvl(NOW_HARDAPP_FORWARD,0))
11 from test_zhjf_ctrf s
12 where id in
13 ('100080')
14 union
15 select id,
16 dump(trim(RECEIPT_AMOUNT)),RECEIPT_AMOUNT,
17 dump(RECEIPT_AMOUNT),RECEIPT_AMOUNT,
18 dump(nvl(LAST_RETURN_ACCOUNT,0)),
19 dump(nvl(NOW_RETURN_ACCOUNT,0)),
20 dump(nvl(RECEIPT_GROSS,0)),
21 dump(nvl(PROJECT_ARRE_AMOUNT,0)),
22 dump(nvl(NOW_SOFTWARE_FORWARD,0)),
23 dump(nvl(SOFT_ARREARAGE_AMOUNT,0)),
24 dump(nvl(NOW_HARDAPP_FORWARD,0))
25 from tb_contract_added_inf f
26 where id in
27 ('100080')
28 /
ID DUMP(TRIM(RECEIPT_AMOUNT)) RECEIPT_AMOUNT DUMP(RECEIPT_AMOUNT) RECEIPT_AMOUNT DUMP(NVL(LAST_RETURN_ACCOUNT,0 DUMP(NVL(NOW_RETURN_ACCOUNT,0) DUMP(NVL(RECEIPT_GROSS,0)) DUMP(NVL(PROJECT_ARRE_AMOUNT,0 DUMP(NVL(NOW_SOFTWARE_FORWARD, DUMP(NVL(SOFT_ARREARAGE_AMOUNT DUMP(NVL(NOW_HARDAPP_FORWARD,0
---------------------------------------------------------------- -------------------------------------------------------------------------------- -------------- -------------------------------------------------------------------------------- -------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
100080 Typ=1 Len=6: 55,48,48,48,48,48 700000 Typ=2 Len=2: 195,71 700000 Typ=2 Len=2: 195,51 Typ=2 Len=2: 195,21 Typ=2 Len=21: 194,78,44,33,33,2,28,2,48,68,53,14,68,53,14,68,53,14,68,53,21 Typ=2 Len=2: 195,31 Typ=2 Len=10: 195,11,45,77,85,41,13,41,51,67 Typ=2 Len=21: 195,18,5,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,56 Typ=2 Len=3: 194,11,65
100080 Typ=1 Len=6: 55,48,48,48,48,48 700000 Typ=2 Len=21: 195,71,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2 700000 Typ=2 Len=2: 195,51 Typ=2 Len=21: 195,21,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2 Typ=2 Len=21: 194,78,44,33,33,2,28,2,48,68,53,14,68,53,14,68,53,14,68,53,25 Typ=2 Len=21: 195,30,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100 Typ=2 Len=21: 195,11,45,77,85,41,13,41,51,67,1,1,1,1,1,1,1,1,1,1,2 Typ=2 Len=21: 195,18,5,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55 Typ=2 Len=21: 194,11,65,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2
SQL>
[ 本帖最后由 fsm 于 2012-6-28 21:25 编辑 ] |