BEGIN SQLSTR := 'UPDATE TBL ...'; EXECUTE IMMEDIATE SQLSTR; EXCEPTION WHEN OTHERS INSERT INTO LOG_TABLE VALUES SQLSTR; -- 插入到异常记录表 ... END;
http://bbs.csdn.net/topics/20052660
oracle 异常处理