存储过程语法错误,求救!!!
CREATE OR REPLACE PROCEDURE PROC_SYN
BEGAIN
insert into TE_TRIGGER@linksg(ID,CODE)
values (select ID,CODE from TE_TRIGGER
where exists (select 1 from TE_TRIGGER where FLAG=0));
update TE_TRIGGER
set flag=1
where flag=0;
END;
/
小弟刚接触oracle,自己写了个过程,哪位能帮我看看什么问题?
还有我想定时执行这个过程该怎么做?
注:linksg是可以使用的
------解决方案--------------------我的异常网推荐解决方案:oracle存储过程,http://www.aiyiweb.com/oracle-develop/177537.html
------解决方案--------------------CREATE OR REPLACE PROCEDURE PROC_SYN
is
------解决方案--------------------CREATE OR REPLACE PROCEDURE PROC_SYN
IS
BEGIN
insert into TE_TRIGGER@linksg(ID,CODE)
select ID,CODE from TE_TRIGGER
where exists (select 1 from TE_TRIGGER where FLAG=0);
update TE_TRIGGER
set flag=1
where flag=0;
END;