the SQL statement
select datetyime from tablename
where date>=sysdate and date<add_months(sysdate,2);然后写一段Connect的jsp, 把result取去。
select datetyime from tablename
where date>=sysdate and date<add_months(sysdate,2);然后写一段Connect的jsp, 把result取去。
调试欢乐多
已解决,应是:
select * from 表名 where to_char(字段,'yy-mm-dd') between to_char(sysdate,'yy-mm-dd') and to_char(add_months(sysdate,2),'yy-mm-dd')";