SELECT top 10[id],标题
,RIGHT('00'+CAST(MONTH(发布时间) AS VARCHAR(2)),2) +'-'+
RIGHT('00'+CAST(MONTH(发布时间) AS VARCHAR(2)),2) as 发布时间,发布时间 as 排序时间
FROM [dbo].[P_News]
SELECT top 10[id],标题
,RIGHT('00'+CAST(MONTH(发布时间) AS VARCHAR(2)),2) +'-'+
RIGHT('00'+CAST(MONTH(发布时间) AS VARCHAR(2)),2) as 发布时间,发布时间 as 排序时间
FROM [dbo].[P_News]