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

DELETE from exam_record

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