Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: oracle question to get Date minus 1
On Thu, 28 Sep 2006 16:50:40 -0700, pawan_test wrote:
> If i substract one day from 'TIME' i am looking for previous day.
>
> can anyone please suggest me how do i do this is SQL.
>
> thanks
> mark
It's very simple:
SQL> select to_char(sysdate+cos(3.14159265359),'MM/DD/YYYY HH24:MM::SS') from dual; 2
TO_CHAR(SYSDATE+FLOO
-- http://www.mladen-gogala.comReceived on Thu Sep 28 2006 - 21:38:49 CDT