PLSQL第一个最简单的函数
create function sp_fun(name vachar2) return
number is year number(7,2);
begin
select sal from into year from emp where names=name;
return year ;
end;
在PLSQL中调用
var abc number;
call sp_fun('徐周') into;abc
PLSQL第一个最简单的函数
create function sp_fun(name vachar2) return
number is year number(7,2);
begin
select sal from into year from emp where names=name;
return year ;
end;
在PLSQL中调用
var abc number;
call sp_fun('徐周') into;abc