发布网友
共1个回答
热心网友
case tj when 1 else 0 end
这个语法是错误的,应该是类似于CASE WHEN mod=1 then 1 ELSE 0 END
另外,你如果要高效,建议改成union方式,比如
select xxx from test where tj=1
union
select xxx from test where tj=2