sql语句获取本周、本月数据
摘要: 本周:select * from table where datediff(week,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本月:select * from table where datediff(Month,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本季:select * from table where ...
阅读全文
posted @
2009-07-04 17:21 流浪浪 阅读(377) |
评论 (0) 编辑