Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL question (converting dates)
Jim Kennedy wrote:
> The difference is the days and fraction of a day. So just multiply the > result by the number of seconds in a day to get how many seconds the > difference is. > Jim > "dbuckingham" <member8912_at_dbforums.com> wrote in message > news:2570355.1046143974_at_dbforums.com... >
You could also consider using DBMS_UTILITY.GET_TIME. It returns the time in 1/100 second. You might code something like
start_time := dbms_utility.get_time;
<< do processing >>
duration := dbms_utility.get_time - start_time;
You would then have your execution time to the 1/100 second. Should be simple enough after that to format into hh:mm:ss.
-- AjAReceived on Tue Feb 25 2003 - 09:32:00 CST