select * from 表 where year='2005' and month<='12';

解决方案 »

  1.   

    select * from table where year||to_char(to_number(month),'09')>='200501' and year||to_char(to_number(month),'09')<='200510';
      

  2.   

    select * from 表 where trim(year)='2005' and trim(month)<='11';
      

  3.   

    谢谢楼上各位我写出来了,如下:
    select * from 表 where year||decode(length(month),2,month,'0'||month)>='200501' and
     year||decode(length(month),2,month,'0'||month)<='200511' ;
      

  4.   

    select * from 表 where year||decode(length(month),2,month,'0'||month)>='200501' and
     year||decode(length(month),2,month,'0'||month)<='200511' ;