Oracle 两时间相减
--天 select (sysdate - to_date("2012-08-27 16:03:00", "yyyy-mm-dd hh24:mi:ss")) from dual; --时 select (sysdate - to_date("2012-08-27 16:03:00", "yyyy-mm-dd hh24:mi:ss")) * 24 from dual; --分 select (sysdate - to_date("2012-08-27 16:03:00", "yyyy-mm-dd hh24:mi:ss")) * 24 * 60 from dual; --秒 select (sysdate - to_date("2012-08-27 16:03:00", "yyyy-mm-dd hh24:mi:ss")) * 24 * 60 * 60 from dual; --天 select (to_date("2012-08-27 17:10:00", "yyyy-MM-dd HH24:MI:S