需要减掉几年,就设getdate()与getdate()的年作比较 比如,今天是07-12-18,我想update ctime栏位到06年,则: update old set ctime=ctime-datediff(day,'06-12-18',getdate())