摘要: --当前时间 select getdate() --当前时间周的起始日期(以周一为例) select DATEADD(week,DATEDIFF(week,0,getdate()),0) --上周起始: select dateadd(week,-1,DATEADD(week,DATEDIFF(week,0,getdate()),0)) --上上周起始: select dateadd(week... 阅读全文
posted @ 2018-03-12 21:22 Sunny Qiang 阅读(3058) 评论(0) 推荐(0) 编辑