得到当天的0点
select trunc(sysdate) from dual
得到两个时间相差多少天
select (addtime -trunc(sysdate)) from e_job
一个时间在两个时间之间
若是日期型,则可: a.acdate between trunc(sydate) and sysdate
两天之间
starttime between trunc(sysdate-2) and sysdate
得到当天的0点
select trunc(sysdate) from dual
得到两个时间相差多少天
select (addtime -trunc(sysdate)) from e_job
一个时间在两个时间之间
若是日期型,则可: a.acdate between trunc(sydate) and sysdate
两天之间
starttime between trunc(sysdate-2) and sysdate