日期:2014-05-18 浏览次数:20611 次
SELECT * FROM tablename WHERE 日期字段 > DATEADD(MINUTE,-10,GETDATE()) ------解决方案--------------------datediff(mi,time1,time2)<=10 ------解决方案--------------------
SELECT * FROM tablename WHERE datediff(mi,时间字段,getdate())<=10