📌  相关文章
📜  sql server 获取上周日的日期 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:34.545000             🧑  作者: Mango

代码示例1
--start of last week
SELECT DATEADD(wk, DATEDIFF(wk, 6, GETDATE()), 0)

--end of last week
SELECT DATEADD(wk, DATEDIFF(wk, 6, GETDATE()), 6)