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;
问问题
90 次
1 回答
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
于 2013-09-11T05:01:34.140 回答