主表对应关联表,一条关联多条的时候就会发散数据。导致指标异常。
select count(1),'all'
from table_a
union all
select count(1),'left join'
from table_a a left join table_b b on a.id=b.id;
主表对应关联表,一条关联多条的时候就会发散数据。导致指标异常。
select count(1),'all'
from table_a
union all
select count(1),'left join'
from table_a a left join table_b b on a.id=b.id;