sql

阅读更多

delete incident_bus_log
where ticket_id in
 (select id
from t_incident
);

delete incident_bus_log_history
where ticket_id in
 (select id
from t_incident
);

 

delete t_person_incident_r
where bill_id in
 (select id
from t_incident
);

delete t_group_workitem
where process_ins_id in
(select process_ins_id
from t_incident
);

delete t_incident;

delete
t_workitem
where process_ins_name = '事件管理流程(测试2)';


delete
t_workitem_his
where process_ins_name = '事件管理流程(测试2)';

你可能感兴趣的:(SQL)