锐Sir

导航

 

2013年5月22日

摘要: 统计当天sql语句为:select * from user where date(log_time) = curdate(); curdate()表示当天日期统计前一天如果表示前一天的数据,则不能使用curdate()-1,因为当日期为月初时,curdate()-1 日期就不是上一个月的月末日期。例如:今天是6月1日,理论上curdate()-1为5月31日,但是curdate()-1得到不... 阅读全文
posted @ 2013-05-22 11:01 锐Sir 阅读(2127) 评论(0) 推荐(0)