首先呢,先大概说一下情况
a b
1 0
0 1
1 1
0 0
数据查询的大致就是这种情况,怎么查出a,b同时满足等于1的数据
a b
1 1
select * from table where  not (a=b and b=1)