各位高手:
SELECT DATENAME(month,‘2015-09-01’) AS 'Month Name'
返回的是英文 September
如何设置 返回 09
------解决思路----------------------
set language '简体中文'
SELECT DATENAME(month,'2015-09-01') AS 'Month Name'
set language 'english'
SELECT DATENAME(month,'2015-09-01') AS 'Month Name'
已将语言设置更改为 简体中文。
Month Name
------------------------------
09
(1 行受影响)
Changed language setting to us_english.
Month Name
------------------------------
September
(1 行受影响)