-- 简单的 Function
create or replace function get_sal(a in number,b in number) return number is result number;
begin result := a + b;
return(result);
end;
-- 调用 Function
select get_sal(1,2) from dual;
-- 简单的 Function
create or replace function get_sal(a in number,b in number) return number is result number;
begin result := a + b;
return(result);
end;
-- 调用 Function
select get_sal(1,2) from dual;