delete from exam_record where timestampdiff(minute, start_time, submit_time) < 5 and score < 60;
TIMESTAMPDIFF(unit[时间单位],begin,end) :可以计算两个日期相差的秒数、分钟数、小时数、天数、周数、季度数、月数、年数,当前日期减少或者增加天数、周数等
DATEDIFF( enddate[结束时间], startdate[开始时间] ) :返回值是相差的天数,不能定位到小时、分钟和秒