Sql查询当天数据的方法

SELECT *
FROM j_GradeShop
WHERE (GAddTime BETWEEN CONVERT(datetime, LEFT(GETDATE(), 10) + ' 00:00:00.000')
      AND CONVERT(datetime, LEFT(GETDATE(), 10) + ' 00:00:00.000') + 1)
ORDER BY GAddTime DESC
posted @ 2009-01-10 00:16  ggbbeyou  阅读(926)  评论(0编辑  收藏  举报