-1
CREATE OR REPLACE

PROCEDURE D_TAB_BONUS
(
EMP_ID   D_EMP.EMPID%TYPE,
SALARY_INC  D_EMP.SALARY%TYPE
)
IS
BEGIN

INSERT  INTO D_BONUS(EMP_ID,SALARY_INC) 
SELECT EMPID,SALARY FROM D_EMP
WHERE EMPID=EMP_ID;

COMMIT;

END;

This gives the error:

Error starting at line 1 in command:
Execute D_TAB_BONUS
Error report:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'D_TAB_BONUS'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
06550. 00000 -  "line %s, column %s:\n%s"
*Cause:    Usually a PL/SQL compilation error.
*Action
4

1 回答 1

3

PLS-00306:调用“D_TAB_BONUS”时参数的数量或类型错误

使用正确数量和类型的参数调用该过程。看起来你没有提供任何东西。

于 2013-11-02T08:39:01.280 回答