程序未执行

时间:2018-03-29 07:26:14

标签: oracle

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;

为什么我不能执行此程序?有谁能发现这个问题?

0 个答案:

没有答案