【问题】sql左连接后查询速度很慢 5
selectbi.*,count(ms.id)asms,count(c1.id)ascallfrombase_infoasbileftjoinmsinfoasmsonbi...
select
bi.*,count(ms.id) as ms,count(c1.id) as call
from
base_info as bi
left join msinfo as ms on bi.id = ms.id
letf join callinfo as c1 on bi.id = c1.id
group by bi.id;
请问这个怎么优化 展开
bi.*,count(ms.id) as ms,count(c1.id) as call
from
base_info as bi
left join msinfo as ms on bi.id = ms.id
letf join callinfo as c1 on bi.id = c1.id
group by bi.id;
请问这个怎么优化 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询