case when then 中的条件里面加上 and or 的处理方式

错误的方式:post case when t.batchid <>' ' and is not null then 1 else 0 end 正确1:spa case when (t.batchid <>' ' and t.batchid is not null) then 1 else 0 end 正确2,去掉括号:code case when t.batchid <>' ' and t
相关文章
相关标签/搜索