📜  oracle 将 run_duration 转换为数字 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:30.293000             🧑  作者: Mango

代码示例1
SELECT JOB_NAME,
       avg(extract(DAY FROM run_duration) * 24 * 60 * 60
               + extract(HOUR FROM run_duration) * 60 * 60
               + extract(MINUTE FROM run_duration) * 60
               + extract(SECOND FROM run_duration))
FROM DBA_SCHEDULER_JOB_RUN_DETAILS
WHERE JOB_NAME = 'my_job_name'
GROUP BY JOB_NAME;