首页 > 技术文章 > mysql查询大于X分钟数

1246447850qqcom 2018-06-07 16:21 原文

select * from table where  
date_add(STR_TO_DATE(createtime,'%Y-%m-%d %T:%i:%s'), interval '00:60:00' hour_second)<=current_timestamp()

推荐阅读