记录exit和return的用法exit用来跳出循环loopIF V_KBP IS NULL THENEXIT;END IF;end loop;return跳出存储过程loopIF V_KBP IS NULL THENreturn;END IF;end loop;跳出loop 一次循环Oracle 11g已提供continue;oracle 10g及以下,使用goto来替代,例如SQL> set serveroutput on;SQL> declare2 begin3 for i in 1..10 loop4 if mod(i,2)=0 then5 goto next;6 end if;7 dbms_output.put_line(i);8 <<next>>9 null;10 end loop;11 end;12 /注意:<<next>>标签后的null;语句不可少,因为goto标签后必须紧接着一个执行语句更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12Linux下Oracle的emca重建EMOracle中的转义字符用法相关资讯 Oracle存储过程