原文:MySQL 查询大于“时间字段”15分钟、1小时、1天的数据

以下代码中times为时间字段,类型为datetime .查询大于times十五分钟的数据 大于号后面都是获取times十五分钟后的时间select from table where now gt SUBDATE times,interval minute select from table where now gt SUBDATE times,interval second select fro ...

2019-04-24 15:20 0 1635 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM