SELECT 'day',DATEADD(day,-7,GETDATE()) 参考微软:https://docs.microsoft.com/zh-cn/sql/t-sql/functions/dateadd-transact-sql?redirectedfrom=MSDN&view=sql-server-ver15 来源:https://www.cnblogs.com/suntanyong88/p/11669803.html 标签 select transact-sql