1  declare
  2     a number;
  3     b number;
  4     c number;
  5     procedure sum(x IN number,y IN number,z OUT number) is
  6     begin
  7             z:=x+y;
  8     end;
  9  begin
 10     a:=5;
 11     b:=10;
 12     sum(a,b,c);
 13     dbms_output.put_line('Sum : '||to_char(c));
 14* end;
SQL> /
Sum : 15

PL/SQL procedure successfully completed.
Advertisements