2017-12-03 27 views
0

我遇到了存儲過程的麻煩。我不斷收到此錯誤: 錯誤:PL/SQL:編制單位分析終止 錯誤:PLS-00410:重複的記錄,表或參數列表字段不允許錯誤:PLS-00410:RECORD,TABLE或參數列表中的重複字段不允許

這就是我試圖運行:

create or replace procedure service_order_proc 
(
SERVICE_ORDER_ID NUMBER, 
CUST_ID NUMBER, 
EMP_ID NUMBER, 
SERVICE_DATE DATE, 
SERVICE_ORDER_STATUS_ID NUMBER, 
SERVICE_ORDER_TYPE_ID NUMBER, 
SERVICE_TOTAL NUMBER, 

EMP_ID NUMBER, 
FNAME VARCHAR2, 
LNAME VARCHAR2, 
PNUMBER VARCHAR2, 
EMP_STATUS_ID NUMBER, 
EMP_GROUP_ID NUMBER 

) 

AS BEGIN 

insert into service_order values (SERVICE_ORDER_ID, CUST_ID, EMP_ID, SERVICE_DATE, 
SERVICE_ORDER_STATUS_ID, SERVICE_ORDER_TYPE_ID, SERVICE_TOTAL); 

insert into employee values (EMP_ID, FNAME, LNAME, PNUMBER, 
EMP_STATUS_ID, EMP_GROUP_ID); 

end; 

回答

1

你有EMP_ID列出兩次作爲過程的參數