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

后端 未结 0 2000
既然无缘
既然无缘 2021-02-07 17:47

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         


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