Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Convert code from SQL Server 2000 to SQL Plus for Oracle

Re: Convert code from SQL Server 2000 to SQL Plus for Oracle

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Tue, 08 Apr 2003 17:11:50 GMT
Message-ID: <MPG.18fca2b522bdc172989722@news.la.sbcglobal.net>


intikhab.bashir_at_corporate.ge.com said...
> Hi, how can I change the following so Oracle SQL can recognise.
> Thanks in advance:
>

<snip>
It's been a while since I did TransactSQL, but I think your code can be reduced to:

select to_char(sysdate,'dd-Mon-yyyy'),

       to_char(last_day(sysdate),'dd-Mon-yyyy') from dual;

If that's not what your code gets, have a look at date functions in the sql manual at http://docs.oracle.com or http://tahiti.oracle.com.

-- 
/Karsten
DBA > retired > DBA
Received on Tue Apr 08 2003 - 12:11:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US