Create (Or Replace) Function Function - Name ( (Parameter - Name Type (, ... ) ) ) Begin End Function - Name
Create (Or Replace) Function Function - Name ( (Parameter - Name Type (, ... ) ) ) Begin End Function - Name
Create (Or Replace) Function Function - Name ( (Parameter - Name Type (, ... ) ) ) Begin End Function - Name
Example 3:
create or replace function fun1(a in number,b in number)
return number as
c number;
begin
c:=a+b;
return c;
end fun1;
Example 4:
create or replace function fun1(a number,b number)
return number is
c number;
begin
c:=a+b;
return c;
end fun1;
Example 5:
create or replace function square(num number)
return number is
begin
return num * num;
end square;