【发布时间】:2010-12-08 00:53:13
【问题描述】:
我正在编写一个 pl-sql 脚本,其中我有大约 10 次 TO_CHAR 转换。
其中一个正在扔一个
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
异常。
目前,我正在使用这段代码记录消息
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.put_line('Exception message is '||SQLERRM(sqlcode));
ROLLBACK;
我想添加(主要用于调试目的)引发异常的行,以便接收格式为
的消息ORA-06502: PL/SQL: numeric or value error: character string buffer too small (at line x)
有没有简单的方法可以做到这一点?
【问题讨论】: