摘要: 今天:select*from table1 where to_days(时间字段名)=to_days(now()); 昨天:select*from table1 where to_days(now())-to_days(时间字段名)<=1; 近7天:select*from table1 where 阅读全文
posted @ 2016-11-15 00:59 秋晨雾雨 阅读(1195) 评论(0) 推荐(1) 编辑