Oracle的存储过程编程 第六讲:if判断语句



 

create or replace procedure test01 is

 V_TEST number(10):=1;

begin

   

   if V_TEST = 1 then

        dbms_output.put_line('1----');

   end if;

   

   

   

   

   

    if V_TEST = 1 then

        dbms_output.put_line('1----');

     else if V_TEST = 2 then

        dbms_output.put_line('2----');

     else if V_TEST = 3 then

        dbms_output.put_line('3----');

     end if;

     end if;

     end if;

end test01;

猜你喜欢

转载自762612388.iteye.com/blog/2332364