查询2016年8月31以后的信息
select * from ms_infodiscuss info where info.dtcreatdate>to_date('2016-08-31','yyyy-MM-dd') -----定时任务
.//创建存储过程create or replace procedure p_test as
begin
insert into tb_user values('10000','new_name','new_address');
end;
//执行存储过程
Declare
i Integer;
Begin
dbms_job.submit(i,'p_test;',Sysdate,'sysdate+1/1440');
end;
//查看已经创建的定时任务
Select * From user_jobs;<pre name="code" class="sql">--关闭定时任务
Declare
job_num Integer;
Begin
Select t.JOB into job_num From User_Jobs t;
dbms_job.broken(job_num,True);
end;
本文介绍了一种使用SQL查询特定日期之后的数据的方法,并详细展示了如何通过存储过程和定时任务来实现数据的自动插入。
1万+

被折叠的 条评论
为什么被折叠?



