select * from 表 Where Year<2012 Or (Year=2012 and month<5)select * from 表 Where Year*100+Month<201205 --假设Year和Month都是int型的
select * from 表名 where Year+'-'+Month<='2014-5'