手段1月份我想要1和12月我想要12.
SELECT MONTH(GETDATE())
这将根据月份返回值1到12.
See the relevant MSDN documentation for details – 整个文档网站免费提供给大家咨询 – 使用它!