select c.*,c.CM_ErrorMessage,c.CM_CaseState From Ldt_JudgeDoc.dbo.CS_CaseManage c where c.CM_CaseState = '0' update Ldt_JudgeDoc.dbo.CS_CaseManage set CM_CaseState = '2' ,CM_ErrorMessage='20200806数据分析失败手动更改状态' where CM_CaseState = '0'