SQL Server 2000 或 2005 中的联接

发布于 2024-09-09 05:43:19 字数 451 浏览 6 评论 0原文

我试图了解 JOINS 在 SQL Server 2000 和 2005 上的工作方式具体

一般来说,我了解内连接、左连接和右连接的工作原理。

然而,我读过的所有文章都用示例进行了解释,但并不特定于任何 RDBMS。所以现在我对不同类型的连接感到困惑,它们只是其他连接的同义词,实际上是不同的。

例如, LEFT OUTER JOINLEFT JOIN 相同吗? RIGHT OUTER JOINRIGHT JOIN 相同吗?

SQL Server 是否支持FULL OUTER JOINCROSS JOIN?连接有哪些不同类型及其同义词。所有这些关键词都让我困惑。

I am trying to understand how JOINS work on SQL Server 2000 and 2005 SPECIFICALLY.

In general, I understand how inner joins, left joins and right joins work.

However, all the articles that I've read, explain it with examples, but are not specific to any RDBMS. So now I am confused to the different types of joins, which are just synonyms of other joins, and which are actually different.

For e.g.,
Is LEFT OUTER JOIN the same as LEFT JOIN?
Is RIGHT OUTER JOIN the same as RIGHT JOIN?

Does SQL Server support FULL OUTER JOIN, CROSS JOIN? What are the different types of joins, and their synonyms. All these keywords are confusing me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

眼眸印温柔 2024-09-16 05:43:19

是的,SQL Server 支持FULL OUTER JOIN交叉连接

是的,LEFT JOINLEFT OUTER JOIN 的同义词。这同样适用于RIGHT JOIN

此外,FULL JOIN 也是FULL OUTER JOIN 的同义词。

您可能有兴趣查看 Jeff Atwood 撰写的以下文章:

Yes, SQL Server supports FULL OUTER JOIN and CROSS JOIN.

And yes again, LEFT JOIN is a synonym for LEFT OUTER JOIN. The same applies to RIGHT JOIN.

In addition, FULL JOIN is a also a synonym for FULL OUTER JOIN.

You might be interested in checking out the following article by Jeff Atwood:

起风了 2024-09-16 05:43:19

MySQL 中 JOIN 和 OUTER JOIN 之间的差异

重复 右连接和右外连接之间没有区别,两者都是相同的。即左连接和左外连接都是相同的。

这会给你一个清晰的想法:
替代文本

SQL 连接的可视化表示

Duplicate of : Difference between JOIN and OUTER JOIN in MySQL

There is no diffrence between Right Join and Right outer Join both are same. i.e Left Join and Left Outer Join both are same.

This will give you clear idea :
alt text

Visual Representation of SQL Joins

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文