原文:MySql 查询一周内最近7天记录

本周内:select from wap content where week created at week now 查询一天:select from table where to days column time to days now select from table where date column time curdate 查询 天:select from table where D ...

2015-10-09 10:35 1 1950 推荐指数:

查看详情

MYSQL查询一周内的数据(最近7的)

select * from wap_content where week(created_at) = week(now)如果你要严格要求是某一年的,那可以这样查询:select * from table where to_days(column_time) = to_days(now ...

Mon May 27 22:32:00 CST 2019 0 8535
MYSQL查询一周内的数据(最近7的)

select * from wap_content where week(created_at) = week(now)如果你要严格要求是某一年的,那可以这样查询:select * from table where to_days(column_time) = to_days(now ...

Fri Jul 08 00:50:00 CST 2016 0 17738
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM