文件名称:计算日期代码
文件大小:298B
文件格式:SQL
更新时间:2016-02-03 12:31:19
计算日期
计算日期,select getdate() as '今日现在' select year('2007-10-11') select month('2007-10-11') select day(getdate())as '今天' select dateadd(day,100,getdate()) /*select datediff(day,'1988-08-29',getdate()) select datediff(month,'1988-08-29',getdate()) select datediff(year,'1988-08-29',getdate())*/