CONTINUE 语句会强制执行循环的下一次迭代,从而跳过两者之间的任何代码。
CONTINUE - 语法
CONTINUE语句的语法如下-
CONTINUE;
CONTINUE - 流程图
CONTINUE - 示例
DECLARE a number(2) := 10; BEGIN -- while loop execution WHILE a < 20 LOOP dbms_output.put_line ('value of a: ' || a); a := a + 1; IF a=15 THEN -- skip the loop using the CONTINUE statement a := a + 1; CONTINUE; END IF; END LOOP; END; /
当以上代码在SQL提示符下执行时,将产生以下输出-
value of a: 10 value of a: 11 value of a: 12 value of a: 13 value of a: 14 value of a: 16 value of a: 17 value of a: 18 value of a: 19 PL/SQL procedure successfully completed.
参考链接
https://www.learnfk.com/plsql/plsql-continue-statement.html
标签:END,plsql,无涯,value,CONTINUE,statement,SQL From: https://blog.51cto.com/u_14033984/8946201