关于存储过程中,使用mod取余的函数

来源:互联网 发布:单机进销存软件免费版 编辑:程序博客网 时间:2024/05/22 06:04

 declare

  i number;

  begin

    for i in 1..13 loop

      if mod(i,3)!=0 

        then

          dbms_output.put_line('不是3的倍数的整数'||i);

         end if;

         end loop;

         exception

           when others

             then

               dbms_output.put_line(Sqlcode||':'||Sqlerrm); 

  end;

0 0