标签:数据 sql rom br select date di where 查询
--如果还有今天以后的数据
--一周内呢
SELECT * FROM TB WHERE datediff(dd,DATE_TIME,getdate()) between 0 and 7
--从现在起往前算24小时内的呢?
SELECT * FROM TB WHERE datediff(hh,DATE_TIME,getdate()) between 0 and 23
标签:数据 sql rom br select date di where 查询
原文地址:http://www.cnblogs.com/sntetwt/p/4122746.html