《2》
if ..... then goto 《1》

解决方案 »

  1.   

    可以用if解决,不用goto可以的,否则程序结构化不好
      

  2.   

    最好不要用goto,再重新设计一下编程的思路(消除goto)
      

  3.   

    for rc in cur1 loop
        loop
          《1》
           update table2 set name=rc.name,num=num+n1 where id=rc.id;
           n1:=n1+1;
           if not《2》 then
             exit;
           end if;
        end loop;
     end loop;