mysql查询7天前的日期

select
*
from courseware_visit_history_info v
where v.COURSEWARE_VISIT_ID='000bf820b2574f8dabdc2bb1c7c63241'
and v.VISIT_TIME BETWEEN date_sub(NOW(),interval 7 day) and NOW()

原文地址:https://www.cnblogs.com/konglxblog/p/8728862.html