题解 | #删除记录(二)#

删除记录(二)

http://www.nowcoder.com/practice/964c9f7fffbb4ab18b507cfed4111b4a

**空或者时间小于5 用到了 is null, timestampdiff **

delete from exam_record
where submit_time is null or timestampdiff(minute, start_time, submit_time) < 5 
order by start_time
limit 3
全部评论

相关推荐

评论
点赞
收藏
分享
牛客网
牛客企业服务