原SQL:
select * from table where column1 = '4' or column2 = '0'
优化后:
select * from table where column1 = '4'
union all
select * from table where column2 ='0' and column1 !='4'
原SQL:
select * from table where column1 = '4' or column2 = '0'
优化后:
select * from table where column1 = '4'
union all
select * from table where column2 ='0' and column1 !='4'