Oracle's stored procedure programming Lecture 6: if judgment statement



 

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;

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326675161&siteId=291194637