提取三天以来的数据
select * from table where to_days(now())-to_days(datefield)<= 3
提取一个星期以来的数据
select * from table where to_days(now())-to_days(datefield)<= 7
提取2004年3月4日之后的数据
select * from table where to_days(now())-to_days(datefield)>= to_days('2004-3-4')
select * from table where to_days(now())-to_days(datefield)<= 3
提取一个星期以来的数据
select * from table where to_days(now())-to_days(datefield)<= 7
提取2004年3月4日之后的数据
select * from table where to_days(now())-to_days(datefield)>= to_days('2004-3-4')
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货