标签: sql
a b row1 0 0 row2 1 0 row3 1 1
如何选择行中& b≠0的数据? 我希望结果是row2和row3
答案 0 :(得分:2)
Select * from yourtable where a <> 0 or b <> 0
答案 1 :(得分:0)
SELECT * FROM `tableName` WHERE (a <> 0) OR (b <> 0);