📜  如何在sql代码示例中获取昨天的日期

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

代码示例1
SELECT DATEADD(day, -1, CAST(GETDATE() AS date)) AS YesterdayDate;