日期:2014-05-17 浏览次数:20869 次
SELECT CASE WHEN DATEPART(weekday,GETDATE()) BETWEEN 2 AND 6 THEN GETDATE() WHEN DATEPART(weekday,GETDATE()) =7 THEN DATEADD(dd,-1,GETDATE()) WHEN DATEPART(weekday,GETDATE()) =1 THEN DATEADD(dd,-2,GETDATE()) END