SMILET
plsql中在命令行执行sql脚本出错后,需要单独记录表来保存错误日志,本身是无法返回的。CREATE OR REPLACE package pkg_error isprocedure log (p_error_code errorlog.code%type,p_error_message errorlog.message%type,p_package errorlog.package_name%type default null,p_procedure errorlog.procedure_name%type,p_location errorlog.location%type default null,p_parameters errorlog.parameters%type default null);end pkg_error;