--练习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;
12-23 02:13