INNER JOIN 和 FROM 子句中的表顺序重要吗?
因此,假设您在列 1 上执行表 1 和表 2 之间的内部联接 如果具有较低条目的表位于 FROM 子句中,会有什么不同吗?
因此,您一开始就得到较少的结果,然后连接将减少它,而不是相反。
对于多个 INNER JOIN 也是如此,您是否应该将 JOIN 放在最前面,这样会最大程度地减少结果,这样后面的连接就会减少工作量?或者它不遵循处理顺序?
So assume you perform an inner join between table1 and table2 on column1
Does it make a difference if the table with lower entries is in the FROM-clause?
So you start with less results in the first place and then the Join will reduce it less than the other way around.
Same thing for multiple INNER JOINs, should you put the JOINs first that will reduce the results the most, so the following joins have less work? Or does it not follow an procesing order?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论