这样获得未来90天的日期列表

比如今天是:2011-04-29
查询出:
2011-04-30
2011-05-01
2011-05-02
2011-05-03
2011-05-04
2011-05-05
2011-05-06
...
...
...
...
...
2011-07-28

oracle数据库中可以这样写 select to_char((sysdate + t.rn),'yyyy-mm-dd') intendingDate from (select rownum rn from dual connect by rownum<=90) t;

to_date('2011-04-29 ','yyyy-mm-dd')+90 就是90天以后的那个日期
至于你说的那个列表 你先得要有这些数据啊
然后就简单了 where yourdate between to_date('2011-04-29 ','yyyy-mm-dd') and to_date('2011-04-29 ','yyyy-mm-dd')+90