摘要: 1.查询昨日数据 SELECT * FROM test WHERE DATEDIFF(DATE_FORMAT(NOW(),'%Y%m%d'),DATE_FORMAT(created_time,'%Y%m%d')) = 1 2.查询上月数据 SELECT * FROM test WHERE PERIO 阅读全文
posted @ 2022-12-01 14:13 鱼鱼寡欢 阅读(22) 评论(0) 推荐(0) 编辑