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