MySQL数据库查询当天数据和本周数据
//查今天到明天之间的数据$today = mktime(0,0,0,date("m"),date("d"),date("Y"));$tomorrow = mktime(0,0,0,date("m"),date("d",strtotime("+1day")),date("Y"));select * from table as a having $today = a.time;//查
原创
2013-07-21 13:35:11 ·
1524 阅读 ·
0 评论