【Vegas原创】Update Time类型的方法
需要减掉几年,就设getdate()与getdate()的年作比较
比如,今天是07-12-18,我想update ctime栏位到06年,则:
update old set ctime=ctime-datediff(day,'06-12-18',getdate())
喜欢请赞赏一下啦^_^赞赏后请加wx:weyocul,相关文章提到的的安装包稍后给到哦!没有收到赞赏直接加我的,直接无视哈!
需要减掉几年,就设getdate()与getdate()的年作比较
比如,今天是07-12-18,我想update ctime栏位到06年,则:
update old set ctime=ctime-datediff(day,'06-12-18',getdate())