-2
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;
4

1 回答 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 回答