Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Different date format
Hello Erika,
select add_months(to_date(sysdate, 'DD-MON-YYYY'), -299) from dual;
does the following:
The second statement "select add_months(sysdate, -299) from dual;" does the following:
See the difference? The first one changes your date by converting it to a varchar2 and back to a date.
Martin Received on Fri May 04 2001 - 19:00:50 CDT