MySQL update case help

前端 未结 6 1511
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 18:58

Can anybody tell me how to fix this query?

update ae44
set Price = Case
when ID = \'AT259793380\' then \'500\'
when ID = \'AT271729590\' then \'600\'
when ID         


        
6条回答
  •  醉梦人生
    2020-11-27 19:48

    update ae44
    set Price = 
    Case ID
    when 'AT259793380' then '500'
    when 'AT271729590' then '600'
    when 'AT275981020' then '700'
    end case
    

提交回复
热议问题