Oracle Interval and Date/Time Conversions. Help!
570799Apr 17 2007 — edited Apr 18 2007Hi 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.