日期:2014-05-18  浏览次数:20489 次

时间计算
根据当前时间怎么得到上年的12月26日
请大家帮忙


------解决方案--------------------
select cast(year(getdate()) - 1 as varchar) + '-12-26 '
------解决方案--------------------
select cast(datepart(year,getdate())-1 as char(4))+ '-12-26 '