摘要:
默认第一天是周日: declare @FridayDate datetime if (DATENAME(dw, getdate()) = 'Sunday') select @FridayDate = DATEADD(wk, DATEDIFF(wk,0,getdate()), -3) else select @FridayDate = DATEADD(wk, DATEDIFF(wk,... 阅读全文
posted @ 2008-08-12 13:26 LonelyStar 阅读(429) 评论(0) 推荐(0) 编辑