CREATE OR REPLACE PROCEDURE LOGINUPDATE
AS
BEGIN
UPDATE
(select e.status from EmployeeTest E
INNER Join SecurityTest S on S.SecurityID=E.EmployeeID and S.SecurityLevel<>'Admin'
INNER Join LOGINTest L on E.EmployeeID=L.LoginID and LastLogin < Add_Months(Cast(SysDate as date),25) and E.Status=1
) t
SET t.status = 0
END;
EXECUTE LOGINUPDATE;
为什么我不能执行此程序?有谁能发现这个问题?