oracle得到当天的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) andsysdate

posted on 2010-09-29 10:12  sunjun0427  阅读(292)  评论(0编辑  收藏  举报