怎么不过滤那4条数据
MySQL5.7.26测试效果如下:select * from test;
select a,b from test where city_id='shanghai' and length(a)+length(b)>=1;
select a,b from test where city_id='shanghai' and (a<>'' or b<>'');
where 1=1 and
那你就不可以过滤掉A列咯