Skip to Main Content

SQL & PL/SQL

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!

Oracle Interval and Date/Time Conversions. Help!

570799Apr 17 2007 — edited Apr 18 2007
Hi guys.
I am trying to migrate from MySql to Oracle some queries, but I don't know how works some SQL functions in Oracle.
One of my queries I have to add to a date variable an amount of microseconds, seconds or minutes, in mysql the function is like this:
DATE_FORMAT(LOCALDATE + INTERVAL DeltaT * 1000 MICROSECOND , '%d/%m/%Y %H:%i')
I woud like also convert seconds, minutes, or hours to a Time variable, my example in mysql is like this:
TIME_FORMAT(SEC_TO_TIME(DeltaT div 1000),'%H:%i')
By the way: DeltaT is in seconds and LOCALDATE is a date variable.

I hope you can help me with this.
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2007
Added on Apr 17 2007
15 comments
937 views