Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Comparison of Oracle commans Vs. SQL Server Commands
On May 23, 1:02 am, Geri Reshef <GeriRes..._at_gmail.com> wrote:
> Where can I find a short comparision of SQL comands of both products?
> I need to find the Oracle equivalents of some SQL Server commands
> (e.g. date functions).
The Oracle single row functions such at sysdate, to_date, add_months, and trunc can be found in the SQL manual.
UT1 > set echo on UT1 > @t7 UT1 > select 2 sysdate Today 3 ,add_months(sysdate, -1) Last_Month 4 ,sysdate + 1 Tomorrow5 ,to_char(sysdate,'YYYYMMDD HH24:MI:SS') With_Time 6 from dual
TODAY LAST_MONT TOMORROW WITH_TIME
--------- --------- --------- -----------------23-MAY-07 23-APR-07 24-MAY-07 20070523 09:41:53 HTH -- Mark D Powell -- Received on Wed May 23 2007 - 08:42:32 CDT
![]() |
![]() |