Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: update year in date column
Here the original year on a was 2002.
update crap2 set a =
to_date(to_char(a,'MM/DD')||'/'||replace(to_char(a,'YYYY'),'2002','3002'),'M
M/DD/YYYY')
> -----Original Message-----
> Thought I'd be clever and subtract 1000 from the date.
> This works, but I don't know how to get it formatted
> back into a date.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Mar 23 2004 - 16:29:35 CST
![]() |
![]() |