📜  sql 添加年初至今 - SQL 代码示例

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

代码示例2
SELECT GETDATE() 'Today', 
           DATEADD(day,-2,GETDATE()) 'Today - 2 Days'
SELECT GETDATE() 'Today', 
           DATEADD(dd,-2,GETDATE()) 'Today - 2 Days'
SELECT GETDATE() 'Today', 
           DATEADD(d,-2,GETDATE()) 'Today - 2 Days'