select * from 表 where 创建日期>(select substr(to_char(sysdate-2,'yyyymmdd'),1,8) from dual)

解决方案 »

  1.   

    select * from 表 where 创建日期>(select substr(to_char(sysdate-10,'yyyymmdd'),1,8) from dual) 
      

  2.   

    select * from 表 where 创建日期 between sysdate-30 and sysdate
      

  3.   


    select * from 表 where 创建日期<sysdate and 创建日期>sysdate-30;
      

  4.   


    提示文字与字符串不匹配 我的创建日期是DATE类型  是类型问题么 怎么改?
      

  5.   

    select * from 表 where 创建日期 between sysdate-30 and sysdate