关于sql server:’LEFT OUTER JOIN’相当于Microsoft SQL中的’JOIN’

Is 'LEFT OUTER JOIN' equivalent to 'JOIN' in Microsoft SQL

在这个msdn页面上,它显示这些是相等的;

LEFT OUTER JOIN or LEFT JOIN

号

我的问题是,在MSSQL中

1
JOIN

也相当于

1
LEFT JOIN

号


不。

JOIN相当于INNER JOIN。

检查这个例子,因为它返回了行,所以我们可以假设它是一个INNER JOIN。

检查文件:

INNER
Specifies all matching pairs of rows are returned. Discards unmatched rows from both tables. When no join type is specified, this is the default.

号

此外,根据本文,join子句的type部分是可选的:

For instance, the entire type-part of the JOIN clause is optional, in
which case the default is INNER if you just specify JOIN.

号


For instance, the entire type-part of the JOIN clause is optional, in
which case the default is INNER if you just specify JOIN.

号

-源左联接与SQL Server中的左外部联接