Create Or Replace Procedure ASS1_RESET_TABLES IS
Begin
Delete * From PAYDETAILS;
Delete * From EMPLOYEE;
Insert into EMPLOYEE(EmpId, EmpNumber, EmpSurname, EmpFirstname, Gender, HourlyRate)
Values(ASS1_EMP_SEQ.nextval, 2, 'Pritchett', 'Jay', 'M', 12.50);
Commit;
End;
答案 0 :(得分:3)
请尝试:
Create Or Replace Procedure ASS1_RESET_TABLES
as
Begin
Delete From PAYDETAILS;
Delete From EMPLOYEE;
Insert into EMPLOYEE(EmpId,EmpNumber,EmpSurname,EmpFirstname,Gender,HourlyRate)
Values(ASS1_EMP_SEQ.nextval,2,'Pritchett','Jay','M',12.50);
Commit;
End;
所做的更改:
Delete * From PAYDETAILS;
应为Delete From PAYDETAILS;
IS
已替换为AS