【Vegas原创】Update Time类型的方法

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

update old set ctime=ctime-datediff(day,'06-12-18',getdate())

 

posted @ 2007-12-28 09:47  李济宏(Amadeus)  阅读(168)  评论(0编辑  收藏  举报