調用的時候出錯,不知道是什么原因,求指教
CREATE OR REPLACE FUNCTION QUERYEMPINCOME(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 SAL * 12 + NVL(PCOMM, 0);
END;
2016-12-05
RETURN SAL * 12 + NVL(PCOMM, 0);改為return psal*12+nvl(pcomm,0);
2016-12-05
沒寫return