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');


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

猜你喜欢

转载自www.cnblogs.com/albert-think/p/11296332.html