日期:2014-05-17 浏览次数:20566 次
CASE WHEN DATEPART(WeekDay,RQ)=1 THEN CASE WHEN DAY(RQ)>=10 THEN '' ELSE '0' END + CAST(DAY(RQ) AS VARCHAR(10))+'日'+'星期天'
WHEN DATEPART(WeekDay,RQ)=2 THEN CASE WHEN DAY(RQ)>=10 THEN '' ELSE '0' END +CAST(DAY(RQ) AS VARCHAR(10))+'日'+'星期一'
WHEN DATEPART(WeekDay,RQ)=3 THEN CASE WHEN DAY(RQ)>=10 THEN '' ELSE '0' END +CAST(DAY(RQ) AS VARCHAR(10))+'日'+'星期二'
WHEN DATEPART(WeekDay,RQ)=4 THEN CASE WHEN DAY(RQ)>=10 THEN '' ELSE '0' END +CAST(DAY(RQ) AS VARCHAR(10))+'日'+'星期三'
WHEN DATEPART(WeekDay,RQ)=5 THEN CASE WHEN DAY(RQ)>=10 THEN '' ELSE '0' END +CAST(DAY(RQ) AS VARCHAR(10))+'日'+'星期四'
WHEN DATEPART(WeekDay,RQ)=6 THEN CASE WHEN DAY(RQ)>=10 THEN '' ELSE '0' END +CAST(DAY(RQ) AS VARCHAR(10))+'日'+'星期五'
WHEN DATEPART(WeekDay,RQ)=7 THEN CASE WHEN DAY(RQ)>=10 THEN '' ELSE '0' END +CAST(DAY(RQ) AS VARCHAR(10))+'日'+'星期六'