Select I.Fee From Item I WHERE GETDATE() - I.DateCreated < 365 days
我如何减去两天?结果应该是几天。例如:365天。500天..等等…
使用DATEDIFF
Select I.Fee From Item I WHERE DATEDIFF(day, GETDATE(), I.DateCreated) < 365