oracle 前一分鐘

select count(1)
from apps.cop_syn_opp_to_ecom e
where e.sync_date >= to_date(TO_CHAR(SYSDATE - 1 / 24 / 60, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd hh24:mi:ss');

select count(1)
from apps.cop_syn_project_to_ecom e
where e.sync_date>=
to_date(TO_CHAR(SYSDATE - 1 / 24 / 60, 'yyyy-mm-dd hh24:mi:ss'),
'yyyy-mm-dd hh24:mi:ss');app

 


SELECT TO_CHAR(SYSDATE - 1 / 24 / 60, 'yyyy-mm-dd hh24:mi:ss') TIME
FROM DUALdate

相關文章
相關標籤/搜索