这样的update能不能改得高效点
update MarketingCaseExpire set ProjectEndState=case when DATEDIFF(month, getdate() , ProjectEndTime)=0 then '当月到期'when DATEDIFF(month, getdate() , ProjectEndTime)<0 then '已到期'when DATEDIFF(month, getdate() , ProjectEndTime)=1 then '下月到期'when DATEDIFF(month, getdate() , ProjectEndTime)>1 then '2个月后到期'end,CurrentMonthExpire=case when DATEDIFF(month, getdate() , ProjectEndTime)=0 then 1else 0end,Expired=case when DATEDIFF(month, getdate() , ProjectEndTime)<0 then 1else 0end,TwoMonthsAfterExpired=case when DATEDIFF(month, getdate() , ProjectEndTime)>1 then 1else 0end,OneMonthsAfterExpired=case when DATEDIFF(month, getdate() , ProjectEndTime)=1 then 1else 0end