select * from a where b_consume = 0 and (state <> -1 or state is null) and SOURCE = 221 转载于:https://www.cnblogs.com/sweet22353/p/11082438.html