2011年8月11日
摘要: 转载自: 网络查询一天:select * from table where to_days(column_time) = to_days(now());select * from table where date(column_time) = curdate();查询一周:select * from table where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(column_time);查询一个月:select * from table where DATE_SUB(CURDATE(), INTERVAL INTERVAL 1 MONTH 阅读全文
posted @ 2011-08-11 20:41 DavidYanXW 阅读(200) 评论(0) 推荐(0)