例子:select Id,FromUserId,ToUserId,[Message],RecordTime,MessageState,casewhen MessageState=1 then '就'when MessageState=2 then '在'when MessageState=0 then '中'end as 状态from message
as是将修改列名