日期:2014-05-18 浏览次数:20497 次
select substring(col,1,6) as 地区, count(datepart(getdate())-cast(substring(col,7,4) as int)) as 人数 from tb group by substring(col,1,6)