创建job 报错 PLS-00103: 出现符号 "MI"在需要下列之一时:
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;
字符串常量中的单引号要用两个单引号来跳脱.