Hello
i want to make optional a parameter in oracel function
for example this is my function
create function sum1(No1 in number,No2 in number,Result out number)
is
begin
Result:=No1+No2 ;
dbms_output.put _line('The sum of No1 and No2 is ||Resutl);
end;
/
variable a number;
Now i want to call it like this
call sum1(10,:a);
i mean that i want to leave the No2 parameter as null, and also give the result
how should i do
give me the best result
thank u everyone
i want to make optional a parameter in oracel function
for example this is my function
create function sum1(No1 in number,No2 in number,Result out number)
is
begin
Result:=No1+No2 ;
dbms_output.put _line('The sum of No1 and No2 is ||Resutl);
end;
/
variable a number;
Now i want to call it like this
call sum1(10,:a);
i mean that i want to leave the No2 parameter as null, and also give the result
how should i do
give me the best result
thank u everyone
Comment