with t(d) as (select '2014-1-21 11:13:10'union all select '2014-1-10 00:00:00'),t1(d) as (select cast(d as datetime) from t)select * from t1 where d between dateadd(ss, -1000, getdate()) and dateadd(ss, 1000, getdate())
试试