CREATE OR REPLACE PROCEDURE P_TEST (
po_code out integer,
po_msg out varchar2
)
as
begin
...
exception when others then
po_code := sqlcode;
po_msg := sqlerrm || DBMS_UTILITY.format_error_backtrace; --出错行号
end
oracle 存储过程返回错误码和错误信息
最新推荐文章于 2024-04-24 00:29:17 发布