MySQL 调优:直接 JOIN or 先子查询再 JOIN?
背景最近,一个朋友的项目经理指出他的 SQL 写得有问题。朋友的 SQL 大致如下:select needed cols... from t1 inner join t2 on t1.col12 = t2.col12 inner join t3 on t2.col23 = t3.col23;项目经理的建议是修改为:select needed cols... from t1inne...
原创
2019-07-21 21:39:12 ·
5690 阅读 ·
7 评论