Sql Server 获取本周周一

SELECT DATEADD(Day,(@i+1)-(DATEPART(Weekday,getdate())+@@DATEFIRST-1)%7,getdate())

猜你喜欢

转载自www.cnblogs.com/RambleLife/p/9858679.html