用当前的时间减去DATE字段的数据,如果等于X,就是符合记录的
不知道行不
select * from data where now()-date=3
你试试吧