sql時間比較查詢當前時間的數據,前一條,後一條

select top 1 * from CheckBill where datediff(second,'2011-05-05 15:56:00',checkDate) > 0 order by CheckDate ascselect top 1 * from CheckBill where datediff(second,checkDate,'2011-05-05 15:56:00') > 0
相關文章
相關標籤/搜索