创建存储函数出错
create or replace function queryenpincome(eno in number) return number as psal emp.sal%type; pcomm emp.comm%type; begin select sal,comm into psal pcomm from emp where empno=eno; return psal*12+nvl(pcomm,0); end;
create or replace function queryenpincome(eno in number) return number as psal emp.sal%type; pcomm emp.comm%type; begin select sal,comm into psal pcomm from emp where empno=eno; return psal*12+nvl(pcomm,0); end;
2018-04-13
举报