oracle 在存储过程或函数中得到异常sql
BEGIN SQLSTR := 'UPDATE TBL ...'; EXECUTE IMMEDIATE SQLSTR; EXCEPTION WHEN OTHERS INSERT INTO LOG_TABLE VALUES SQLSTR; -- 插入到异常记录表 ... END;
http://bbs.csdn.net/topics/20052660
BEGIN SQLSTR := 'UPDATE TBL ...'; EXECUTE IMMEDIATE SQLSTR; EXCEPTION WHEN OTHERS INSERT INTO LOG_TABLE VALUES SQLSTR; -- 插入到异常记录表 ... END;
http://bbs.csdn.net/topics/20052660