大佬教程收集整理的这篇文章主要介绍了删除重复数据耗时10多个小时MYSQL,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我是 MysqL 的新手。我想删除我表上的重复数据,但它仍然需要一整天的时间才能像无限循环一样运行。 这是我运行的脚本,用于清除包含 5000 个数据组合的表上的所有重复数据。
deletE en1,cm1,reg1,yr1,cmod1,mocat1,sem1,ex1,pen1,exdet1,excat1,exres1
FROM student_class_enrollment en1,acad_class_course_module cm1,student_registration_ID reg1,college_academic_years yr1,acad_course_module cmod1,acad_class_course_module_category mocat1,semester sem1,acad_class_course_module_exam ex1,acad_course_module_penalty pen1,acad_class_course_module_exam_detail exdet1,acad_class_exam_category excat1,acad_class_course_module_exam_result exres1
JOIN student_class_enrollment en2,acad_class_course_module cm2,student_registration_ID reg2,college_academic_years yr2,acad_course_module cmod2,acad_class_course_module_category mocat2,semester sem2,acad_class_course_module_exam ex2,acad_course_module_penalty pen2,acad_class_course_module_exam_detail exdet2,acad_class_exam_category excat2,acad_class_course_module_exam_result exres2
WHERE en1.ID < en2.ID
and cm1.ID < cm2.ID
and reg1.ID < reg2.ID
and yr1.ID < yr2.ID
and cmod1.ID < cmod2.ID
and mocat1.ID < mocat2.ID
and sem1.ID < sem2.ID
and ex1.ID < ex2.ID
and pen1.ID < pen2.ID
and exdet1.ID < exdet2.ID
and excat1.ID < excat2.ID
and exres1.ID < exres2.ID
and en1.ID = en2.ID
and en1.student_ID = en2.student_ID
and cmod1.code = cmod2.code
and exres1.raw_mark = exres2.raw_mark
and excat1.cat_code = excat2.cat_code
and exdet1.ex_weight = exdet2.ex_weight
我不知道我哪里出错了,我需要帮助来加快这个任务。谢谢
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的删除重复数据耗时10多个小时MYSQL全部内容,希望文章能够帮你解决删除重复数据耗时10多个小时MYSQL所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。