title: How do i continue running my program after encountering exception in SQL?
body: <p>I have written a PL/SQL code to to print only records greater than id=4. I used a goto statement in the program, which is not detected in exception. Please help me continue the program after encountering the exception.
  My code is</p>
  
  <pre><code>declare
      cursor cur is select * from student;
      c student%rowtype;
      lt3 exception;
      PRAGMA
      exception_init(lt3,-77);
  begin
      open cur;
      loop
          &lt;&lt;backup&gt;&gt;
          fetch cur into c;
          if c.id &lt; 4 then
              raise lt3;
          else
              dbms_output.put_line(c.name);
          end if;
      end loop;
      close cur;
  exception
      when lt3 then
      dbms_output.put_line('Exception encountered');
      goto backup;
  end;
  /
  </code></pre>
  
  <p>Where should i change?</p>
  
  <p>I got the error at </p>
  
  <pre><code>ERROR at line 24:
  ORA-06550: line 24, column 7:
  PLS-00201: identifier 'BACKUP' must be declared
  ORA-06550: line 24, column 2:
  PL/SQL: Statement ignored
  </code></pre>