急!给高分!哪为大哥给看看这个问题啊,做一个定时任务参数总出错啊! 'zprocedure('dyear'||'dmonth'||'dday');'是什么?参数是这样的马? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 create or replace procedure zprocedure is --declare dyear number(4); dmonth number(2); dday number(2);begin --将系统时间进行拆分 select to_number(to_char(sysdate,'yyyy')), to_number(to_char(sysdate,'mm')), to_number(to_char(sysdate,'dd')) into dyear,dmonth,dday from dual; --调用其它存储过程 hourdataprocedure(dyear,dmonth,dday); daydataprocedure(dyear,dmonth,dday); monthdataprocedure(dyear,dmonth); yeardataprocedure(dyear);处理异常 exception when others then null; commit; end zprocedure;我在PL/SQL中直接调用没有问题,但一加到JOB中就不行了! try:beginsys.dbms_job.submit(:job1,'zprocedure;',sysdate,'sysdate+1/1440');end; ORACLE中关于时间的差值的困惑 用PLSQLDevelpoer登录Oracle的问题 大家感恩节快乐!~~顺便问个小问题 ORACLE 报的错:maximun number of sessions exceeded 怎样用PL/SQL 导入DMP的数据库? 帮忙写个触发器? 如何重定位控制文件 常见的问题征求建议 超复杂的问题 今天写的几个SQL查询的题目 oracle插入大批量数据问题 菜鸟问个简单的SQL 我适合现在学习Oracle吗
--declare dyear number(4);
dmonth number(2);
dday number(2);begin
--将系统时间进行拆分
select to_number(to_char(sysdate,'yyyy')),
to_number(to_char(sysdate,'mm')),
to_number(to_char(sysdate,'dd'))
into dyear,dmonth,dday
from dual;
--调用其它存储过程
hourdataprocedure(dyear,dmonth,dday);
daydataprocedure(dyear,dmonth,dday);
monthdataprocedure(dyear,dmonth);
yeardataprocedure(dyear);
处理异常
exception
when others then
null;
commit;
end zprocedure;
我在PL/SQL中直接调用没有问题,但一加到JOB中就不行了!
sys.dbms_job.submit(:job1,'zprocedure;',sysdate,'sysdate+1/1440');
end;