SQLServer中使用IF逻辑判断

if(1=1)
  begin
    select '对'
  end
else
  begin
    select '错'
  end

原文地址:https://www.cnblogs.com/binaryworms/p/1697129.html