PLSQL minimal exception logging
Friday, July 21st, 2006 here’s a way to add some minimal exception logging to an Oracle stored procedure.
here’s a simple loop from a SP:
OPEN someInsertCursor;
LOOP
FETCH someInsertCursor INTO someInsertRec;
EXIT WHEN someInsertCursorr%NOTFOUND;
INSERT INTO some_table (id) values (someInsertRec.OD_PAIR_DEP_ID);
END LOOP;
CLOSE someInsertCursor;
what if sometimes the record you try to insert violates […]