Using IF..ELSE in UPDATE (SQL server 2005 and/or ACCESS 2007)

后端 未结 0 855
粉色の甜心
粉色の甜心 2021-02-07 18:07

I need to set a query like below:

UPDATE XXXXXX
IF column A = 1 then set column B = \'Y\' 
ELSE IF column A = 2 then set column C = \'Y\' 
ELSE IF column A = 3 t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题