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‘);
SELECT TO_CHAR(SYSDATE - 1 / 24 / 60, ‘yyyy-mm-dd hh24:mi:ss‘) TIME
FROM DUAL
原文:https://www.cnblogs.com/albert-think/p/11296332.html