create or replace function sum(v_num1 number,v_num2 number)
return number
is
begin
v_num3 := v_num1 + v_num2;
return v_num3;
end;
declare
v_num3 number(10);
v_num3:=sum(5,4);
dbms_output.put_line(v_num3);
Jery227
相关分类