这里的记录有一条是时差在4分59,故不适合使用timediff进行精确判断,此处使用时间戳判断更为适合

delete from exam_record 
where timestampdiff(minute,start_time,submit_time)<5 and score<60;