多个关联表的优化?

经常碰到类似这样的语句

假设有5个表,每个表都是500万左右的记录
表名是a,b,c,d,e
语句如下

select a.id
from a
left join b on a.id=b.id
left join c on c.custno=d.custno
left join d on d.name=e.name and e.startdate>='20171026'

假设表上语句where字段上的索引都有,统计信息也是最新的,
请问这样的语句如何优化?

参与18

问题来自

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2018-05-24
  • 关注会员:6 人
  • 问题浏览:5473
  • 最近回答:2018-05-30
  • X社区推广