Header-Text-Box-Right

we have developed this blog to share my existing knowledge which I had gained in last 10+ years in IT. It is difficult to write all our knowledge on this blog but, still we am trying to put all our learning to this blog so, all the ideas will be shared.......

Tuesday, December 29, 2009

SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- III

Date Functions

Function - Date addition
Oracle - (use +)
SQL Server - DATEADD
My Sql - Need To Update


Function - Date subtraction
Oracle - (use -)
SQL Server - DATEDIFF
My Sql - Need To Update


Function - Last day of month
Oracle - LAST_DAY
SQL Server - N/A
My Sql - Need To Update

Function -Time zone conversion
Oracle - NEW_TIME
SQL Server - N/A
My Sql - Need To Update

Function -First weekday after date
Oracle - NEXT_DAY
SQL Server - N/A
My Sql - Need To Update

Function -Convert date to string
Oracle -TO_CHAR
SQL Server - DATENAME
My Sql - Need To Update

Function -Convert date to number
Oracle -TO_NUMBER(TO_CHAR())
SQL Server - TO_NUMBER(TO_CHAR())
My Sql - Need To Update

Function -Convert string to date
Oracle -TO_NUMBER(TO_CHAR())
SQL Server - CAST
My Sql - Need To Update

Function -Get current date and time
Oracle -SYSDATE
SQL Server - GETDATE()
My Sql - Now()

1 comments:

RING said...

愛情不是慈善事業,不能隨便施捨。.........................

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls