首先这个字段必须是数值型的,可以直接“字段名称>0”“字段名称<0”,不是数值型,就要转换然后再判断
后面继续添加条件就行了,and 字段>0 and 字段<0
后面加上 and 你的字段>0或者 and 你的字段<0
使用 case when 可以实现case when f1 > 0 then f2 = 'xxx'else f3 = 'yyy'end