下面的查询以小写的月份返回日期,我需要大写的月份,任何帮助将不胜感激。当前为 2012 年 8 月 8 日,我需要 2012 年 8 月 8 日。
Select
RTrim(Right(MTRL.MTRL_NBR, 9)) As MTRL_NBR,
RTrim(PROD_ORDR.PROD_ORDR_NBR) As ORDER_NBR,
RTrim(PROD_ORDR.BTCH_NBR) As BATCH_NBR,
RTrim(PROD_ORDR.RVSN_LVL) As REV_LVL,
Convert(VARCHAR(11),PROD_ORDR.ACT_RLSE_DT,106) As RELEASE_DATE
From
MPM.DBO.PROD_ORDR
Inner Join MPM.DBO.MTRL
On PROD_ORDR.MTRL_OID = MTRL.OID
Where PROD_ORDR.PROD_ORDR_NBR = 000104007817