shenyixin
select convert(varchar(7),dateadd(month,number,\'2010-01-01\'),120)
from master..spt_values
where type=\'P\' and dateadd(month,number,\'2010-01-01\')<=\'2010-09-01\'
/*
-------
2010-01
2010-02
2010-03
2010-04
2010-05
2010-06
2010-07
2010-08
2010-09

*/

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-15
  • 2021-07-12
  • 2021-11-29
  • 2021-12-03
  • 2022-12-23
相关资源
相似解决方案