MSSQL中增加天数/月/年的函数

select dateadd(day,10,getdate())

这是显示距今天10天以后的日期

day可换month或者year

猜你喜欢

转载自blog.csdn.net/gdali/article/details/78197263