题解 | #删除记录(二)#
删除记录(二)
https://www.nowcoder.com/practice/964c9f7fffbb4ab18b507cfed4111b4a
timestampdiff(minute, start_time, submit_time) < 5 时间差
or submit_time is null 为完成
order by start_time limit 3;升序排序选取最小的三个数据delete from exam_record where timestampdiff(minute, start_time, submit_time) < 5 or submit_time is null order by start_time limit 3;