删除某员工考勤业务数据的参考脚本

栏目:s-hr cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-22浏览:1

删除某员工考勤业务数据的参考脚本

解决方案:

【适用版本】

通用

【分析处理】

--备份数据

select * into attendancefile0526 from t_hr_ats_attendancefile

select * into attendancefilehis0526 from t_hr_ats_attendancefilehis

select * into holidaylimit0526 from t_hr_ats_holidaylimit

select * into holidaylimitdetail0526 from t_hr_ats_holidaylimitdetail

select * into overtimebillentry0526 from  t_hr_ats_overtimebillentry

select * into overtimebill0526 from  t_hr_ats_overtimebill 

select * into punchcardrecord0526 from t_hr_ats_punchcardrecord

--删除数据

delete from  t_hr_ats_holidaylimit where fproposerid='3ZPLMWP7RVW6EnlHElwGi4Dvfe0='

delete from t_hr_ats_holidaylimitdetail where fproposerid='3ZPLMWP7RVW6EnlHElwGi4Dvfe0='

delete from t_hr_ats_overtimebill where fid in( select fbillid from t_hr_ats_overtimebillentry where fpersonid='3ZPLMWP7RVW6EnlHElwGi4Dvfe0=')

delete from  t_hr_ats_overtimebillentry where fpersonid='3ZPLMWP7RVW6EnlHElwGi4Dvfe0='

delete from t_hr_ats_punchcardrecord  where fproposerid='3ZPLMWP7RVW6EnlHElwGi4Dvfe0='

delete from t_hr_ats_attendancefile where fproposerid='3ZPLMWP7RVW6EnlHElwGi4Dvfe0=' 

delete from t_hr_ats_attendancefilehis where fproposerid='3ZPLMWP7RVW6EnlHElwGi4Dvfe0=' 


删除某员工考勤业务数据的参考脚本

解决方案:【适用版本】通用【分析处理】--备份数据select * into attendancefile0526 from t_hr_ats_attendancefileselect * into...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息