日期:2014-05-18 浏览次数:20399 次
select number from master..spt_values where number between 2008 and 2012 and type='p' /* number 2008 2009 2010 2011 2012 */
------解决方案--------------------
select 2008+number from master.dbo.spt_values where type='p' and number<=2012-2008