Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert for MSSQL to Oracle

user11993452Mar 8 2017 — edited Mar 9 2017

I have been asked to convert a script from MSSQL to Oracle but cannot work out how to convert the following line to Oracle.

SELECT CONVERT(varchar, DATEADD(HOUR,DATEDIFF(HOUR, GETUTCDATE(), GETDATE()),CONVERT(varchar,

It should be the difference between UTC and the local time using the time set on the server.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2017
Added on Mar 8 2017
4 comments
409 views