EXCEPTION
WHEN OTHERS THEN
V_ERR_MSG := '消息内容';
DBMS_OUTPUT.PUT_LINE(V_ERR_MSG);
RAISE_APPLICATION_ERROR(-20007, V_ERR_MSG);
END;
ORA-00900: invalid SQL statement 无效SQL 语句
ORA-01401:Inserted value too large for column ( 字段长度不对)
ORA-01403:no data found (没有发现数据)
ORA-06502: PL/SQL: numeric or value error 数据长度(重新运行存储过程)
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06550: line 1, column 7(参数个数不一致)
ORA-:not a valid month (日期格式不对)