问一下这样的存储过程为啥建立job会出现这样的失败?

iwhp iwhp 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
---1.创建一个自定义过程
reate or replace procedure resch as
begin
delete from res_ge1 where a = 2;
commit;
delete from res_ge2 where b = 3;
commit;
delete from res_ge3 where c = d;
commit;
end;
/

---------上面的存储过程,建立job后报错:
ORA-06550: 第 11 行, 第 0 列:
PLS-00103: 出现符号 "end-of-file"在需要下列之一时:
begin case declare
end exception exit for goto if loop mod null pragma raise
return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
job3
...全文
评论 9
收藏 已收藏
分享
返回顶部
iwhp
基础和管理 17,379 成员 95,111 内容