打赏
摘要: 1.查询今天的数据 select * from 表名 where to_days(时间字段名) = to_days(now()); 2.查询昨天的数据 SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) <= 1 3.查询7天内的数据 阅读全文
posted @ 2020-05-06 15:47 张学涛 阅读(192) 评论(0) 推荐(0)
摘要: package com.payboot.tool.makeno; import java.text.SimpleDateFormat; import java.util.Date; /** * @Author: 张学涛 * @Date: 2020-05-06 09:38 * @Version 1.0 阅读全文
posted @ 2020-05-06 13:38 张学涛 阅读(396) 评论(0) 推荐(0)