日期:2014-05-18 浏览次数:20699 次
select id,year+month as ym from table where ym>'2012-1' and ym<'2012-3'
------解决方案--------------------
select id,year+'-'+month as ym from table where ym>'2012-1' and ym<'2012-3'
------解决方案--------------------
select id,year+month as ym from table where year+month>'2012-1' and year+month<'2012-3'