查询离某个时间最近的记录select top 1 * from table where order by abs(datediff(d,日期列,'2008-12-20')) asc转载于:https://blog.51cto.com/yataigp/2073534