PLSQL中的3种循环使用方法

PLSQL中的循环语句
  --WHILE 条件成立时循环
  1、WHILE  total<=25000  LOOP 
        语句序列
        total:=tatal+salary;
        END LOOP;


  --LOOP循环 条件成立时退出
  2、LOOP 
       EXIT [when 条件];
       语句序列
       END LOOP;


  --FOR循环  1..3表示区间
  3、FOR I IN 1..3 LOOP
       语句序列;
       END LOOP;

猜你喜欢

转载自blog.csdn.net/yu_ge_ge/article/details/80562644
今日推荐