本人要求多条件下显示内容n1,n2,n3,n4,n5,n6满足条件a=1显示n1,a=0时则判断条件b=1则判断条件C=0则判断D=0则显示n2,d!=0 则显示n3,C!=0判断e=0显示n4,e!=0显示n5b!=1显示n6
本人要求多条件下显示内容n1,n2,n3,n4,n5,n6满足条件a=1显示n1,a=0时则判断条件b=1则判断条件C=0则判断D=0则显示n2,d!=0 则显示n3,C!=0判断e=0显示n4,e!=0显示n5b!=1显示n6
select case when a=1 then n1
case when a=0 and b=1 and c=0 and d=0 then n2
case when d<>0 then n3
case when c<>0 and e=0 then n4
case when e<>0 then n5
case when b<>1 then n6
end from table