如果是想将整体数据的年份更新为明年,那么update语句为:
update table a set a.date = to_date((to_char(a.date,'yyyy')+1)||to_char(a.date,'mmdd'),'yyyymmdd');
如果是单纯对于2008/05/19这条数据进行更新,那么update语句为:
update table a set a.date = to_date('20090519','yyyymmdd') where a.date >= to_date('20080519','yyyymmdd') and a.date < to_date('20080520','yyyymmdd');
温馨提示:答案为网友推荐,仅供参考