Basically I am going through each row in a table like this:
CREATE OR REPLACE PROCEDURE
testProc
IS
CURSOR hd_cur IS
SELECT *
FROM table;
BEGIN
FOR hd_rec IN hd_cur
LOOP
IF something
THEN
RAISE exception
EXCEPTIONS
END LOOP;
END;
Within the loop there will be some if statements and i want to raise an exception in some cases. But I need to pass all the values in the row to exceptions so i can insert them into another table. Is it possible to do something like above?
Also I want to loop to continue to the next row after as well. Any ideas?
Any help appreciated!