where (sysdate>25日 and rq between 当月26日 and sysdate) or (sysdate<=25日 and rq between 上个月25日 and sysdate)根据这个意思改吧
解决方案 »
- 关于ORA-12518: TNS:listener could not hand off client connection求指导
- oracle中DBMS_JOB.SUBMIT的用法?
- 求助保存规则数据的表结构设计
- 求助:如何用sql语句定时删除临时表???
- oracle数据库用expdp命令报错,求解??
- 在网络中同时访问数据库的问题!
- 请问"PORT number","Database SID"在哪里设置?ORACLE服务不易受到攻击?
- 请教如何将Oracle布置在不同的机器上...
- 求助 高手看下
- SPA(SQL Performance Analyzer)的用户移动问题
- 请教:关于jre.exe的作用
- oracle 9i Linux 下安装时出现 无法建立inventory目录,你可能没有相应权限,请高手帮忙,100分相送
and rq between to_date(to_char(sysdate, 'RRMM') || '26','RRMMDD') and sysdate )
or
( to_number(to_char(sysdate, 'DD')) <= 25
and rq between to_date(to_char(add_months(sysdate, -1), 'RRMM') || '25','RRMMDD') and sysdate )