dump 解决问题

使用外部表搞了一些数据到数据库中去,结果有一列原本可以转化为number的却出现了ORA-01722: invalid number。

trim了半天也没有效果,想起dump:

select">SQL>select dump(id) from test_re_2 where rownum<10;

DUMP(ID)
------------------------------------------------------------------------------------------------------------------------------------------------------
Typ=1 Len=11: 9,49,48,48,48,48,50,50,52,54,9
Typ=1 Len=11: 9,49,48,48,48,48,50,50,52,55,9
Typ=1 Len=11: 9,49,48,48,48,48,50,50,52,56,9
Typ=1 Len=11: 9,49,48,48,48,48,50,50,52,57,9
Typ=1 Len=11: 9,49,48,48,48,48,50,50,53,48,9
Typ=1 Len=11: 9,49,48,48,48,48,50,50,53,49,9
Typ=1 Len=11: 9,49,48,48,48,48,50,50,53,50,9
Typ=1 Len=11: 9,49,48,48,48,48,50,50,53,51,9
Typ=1 Len=11: 9,49,48,48,48,48,50,50,53,52,9

9 rows selected.

竟然前后各有一个制表符(9是制表符)。

replace掉,ok。

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7312700/viewspace-1005041/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7312700/viewspace-1005041/

你可能感兴趣的:(dump 解决问题)