PL/SQL 基础知识

时间:2014-08-13 19:33:57   收藏:0   阅读:238

pl/sql中的四种循环

loop 
exit when c_page >10;
c_page := c_page+1;
dbms_output.put_line(‘c_page : ‘ || c_page);
end loop;

while c_page<20 loop

c_page := c_page+1;
dbms_output.put_line(‘c_page : ‘ || c_page);

end loop;

<<repeat_loop>>
dbms_output.put_line(‘repeat_loop : ‘);
c_page:= c_page - 1;
if c_page> 10 then
goto repeat_loop;
end if;

for c_page in reverse 1..100 loop

dbms_output.put_line(‘for loop : ‘ || c_page);
end loop;


PL/SQL 基础知识,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!