goto,null 比眉伴天荒 2021-12-23 08:17 255阅读 0赞 **goto** 跳转到特定标号去执行语句 declare a int:=1; begin loop dbms_output.put_line(a); if a=5 then goto print_now; end if; a:=a+1; end loop; <<print_now>> dbms_output.put_line('从这开始'); end; / **null** 不执行任何操作 set serveroutput on declare a int:=1; begin for a in 1 .. 10 LOOP if a=5 then dbms_output.put_line(a); else null; end if; end loop; end; / ![这里写图片描述][SouthEast] 转载于:https://www.cnblogs.com/feiZhou/p/9344204.html [SouthEast]: /images/20211223/7d7f62aba6c74049927f22a09c565343.png
还没有评论,来说两句吧...