当前位置: 代码迷 >> Sql Server >> 关于SQL 多重IF 的有关问题
  详细解决方案

关于SQL 多重IF 的有关问题

热度:46   发布时间:2016-04-24 10:28:27.0
关于SQL 多重IF 的问题

  IF (tab = 1) TEHN
         IF .....
         IF......
         IF......
  else 
   .......................
  end

在SQL 中的语法是怎样的!


------解决方案--------------------
if xxx
begin 

end 
else if 
begin

end 
else if 
begin 
end 
else 
begin end
  相关解决方案