--練習1 create or replace procedure pro_hello as begin dbms_output.put_line('hello world'); end; begin pro_hello(); end; --練習2 create or replace procedure pro_sum( num1 NUMBER, num2 NUMBER ) as begin dbms_output.put_line(num1 + num2); end; begin pro_sum(5,6); end; --練習3 create or replace procedure pro_sum( num1 number, num2 number, return out number--輸出參數 ) as begin return := num1 + num2; end; declare r number(3);--聲明變量 begin pro_sum(5,3,r); dbms_output.put_line(r); end;