1. 程式人生 > >oracle關於時間的處理,如計算間隔天數

oracle關於時間的處理,如計算間隔天數

select sysdate from dual;
SELECT APPLY_DATE ,round((select sysdate from dual)-APPLY_DATE,0) from DT_AUDIT_UPDATE ;
SELECT APPLY_DATE ,round((select sysdate from dual)-APPLY_DATE,0) len ,a.* from DT_AUDIT_UPDATE a
where a.STATUS ='1' and round((select sysdate from dual)-APPLY_DATE,0)>60;