我有一个时间字段 submitdate(提交时间) 现在想写个 sysdate - submitdate > 2天 这个意思的sql语句 请各位指点下

解决方案 »

  1.   

    select to_char(sysdate,'DD')-to_char('2009-03-01','DD') day from dual;
      

  2.   

    上面错了,select * from tb where sysdate - 2 > submitdate

    select * from tb where sysdate -  submitdate >2
    是一样的
      

  3.   

    select sysdate-2 from dual;
      

  4.   

    select * from tablename where sysdate -  submitdate >2 ;