Sql 时间条件查询语句

Sql语句查询当天 本周 本月记录的where条件 --查询当天:    select * from info where DateDiff(dd,datetime,getdate())=0       --查询24小时内的:    select * from info where DateDiff(hh,datetime,getDate())<=24       --info为表名,dateti
相关文章
相关标签/搜索