码迷,mamicode.com
首页 > 数据库 > 详细

清除作业列表SQL

时间:2015-09-22 16:08:52      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:

DELETE CM_JOB_SRC_LOG
WHERE job_id IN (select job_id from CM_JOB_LOG where job_status = 2000 and job_id in(
20150919000114
));

delete CM_JOB_STEP_LOG
where job_id in(select job_id from CM_JOB_LOG where job_status = 2000 and job_id in(
20150919000114
));

DELETE CM_JOB_STAT_LOG
WHERE job_id IN (select job_id from CM_JOB_LOG where job_status = 2000 and job_id in(
20150919000114
));

DELETE CM_JOB_LOG
WHERE job_status = 2000 and job_status = 2000 and job_id IN(
20150919000114
);

/* (job_status)
1000    正在执行中
2000    成功完成
3000    重启作业
4000    取消作业
9000    失败
*/

 

清除作业列表SQL

标签:

原文地址:http://www.cnblogs.com/arcer/p/4828823.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!