AFTER ERROR CONTINUE to LOOP (or any other way)

Hi all
I have to keep my loop for next after the error.

---
BEGIN
FOR rs
(SELECT 'my select stmt' FROM DUAL)
)
LOOP
NULL;-if there is error update error information in the ERR_LOG table and continue the loop
END LOOP;
EXCEPTION
WHILE OTHERS THEN
INSERT INTO ERR_LOG VALUES ('error details')
NULL;
END;
---

or apart from Above method we have another way to implement above solution?

Thank you
Isabelle Dhaneenja

You can declare an another begin... end with its own exception handler to catch the error.

BEGIN
FOR rs
(SELECT 'my select stmt' FROM DUAL
)
LOOP
NULL;--if there has error update error info to ERR_LOG table and continue loop
   begin
   null;
   EXCEPTION
   WHEN OTHERS THEN
   INSERT INTO ERR_LOG VALUES('error details' )
   end:
END LOOP;

END;

Tags: Database

Similar Questions

Maybe you are looking for

  • I can't install aperture 2, I had an original cd and how numbers do

    I can't install aperture 2, I had an original cd and how numbers do

  • change the screen from vertical to horizontal

    My cat sitting on my keyboard and changed the screen on my monitor from horizontal to vertical.  I'm typing this with my screen, sitting on its side.  How can I fix it.   .. guess the cat is smarter than me.  Thank you.

  • WHICH ARE EL ERROR 0X800F0823

    Al tratar fornuis y montar el para el windows vista sp1 me da error Ox800F0823 ese y me as soon as me dirija al lien--http//go.microsoft.com/fwlink/?linkid=101139 IS he HECHO TODO LO WHAT DICE THE THIS Y SIGUE LEAVING EL MISMO HERROR WHAT SE POODRIA

  • Color HP LaserJet Pro 400 M451

    Hi, how can I stop someone wireless on my HP LaserJet Pro 400 M451 color printing, for example through. Where and how to configure printing wireless by peope I appoint?

  • Model lost all data on tables

    I know I've seen this before but lost track of the solution.I made a backup from an existing to a new directory template. Once I closed shape and re-opened, all the data types show UNKNOWN. If I go into the administration of the areas, it looks like