skip to Main Content

delete multiple rows in mysqldb

How can we optimize the delete query. delete FROM student_score WHERE lesson_id IS NOT null AND id NOT IN(SELECT MaxID FROM temp) ORDER BY id LIMIT 1000 This select statement return "SELECT MaxID FROM temp" 35k lines and temp is…

VIEW QUESTION
Back To Top
Search