摘要: 这样,比如:表名为:tableName 时间字段名为:theDate查询本月的记录select * from tableName where DATEPART(mm, theDate) = DATEPART(mm, GETDATE()) and DATEPART(yy, theDate) = DATEPART(yy, GETDATE()) 查询本周的记录select * from tableNam... 阅读全文
posted @ 2009-06-22 16:06 Burt 阅读(216) 评论(0) 推荐(0) 编辑