select * from `table` where date(`date`) = curdate() SELECT * FROM `table` WHERE DATE_FORMAT(FROM_UNIXTIME(regdate),'%Y-%m-%d')= DATE_FORMAT(NOW(),'%Y-%m-%d') order by uid desc
第一条最好显示过去24小时过去1周等的mysql语句 第二条获得当天数据信息的mysql语句