INNER JOIN 和 FROM 子句中的表顺序重要吗?

发布于 2025-01-16 21:49:56 字数 193 浏览 3 评论 0原文

因此,假设您在列 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文