VARIABLE jobno number;
begin
DBMS_JOB.SUBMIT(:jobno, 'MYPROC; ', SYSDATE, 'trunc(SYSDATE, 'mi ') + 1/1440 ');
commit;
end;
------解决方案--------------------
VARIABLE jobno number;
BEGIN
dbms_job.submit(:jobno,
'MYPROC; ',
SYSDATE,
'trunc(SYSDATE, ' 'mi ' ') + 1/1440 ');
COMMIT;
END;
字符串常量中的单引号要用两个单引号来跳脱.