Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
缺省情况下,连接是内连接。这意味着,只有满足连接条件的行才能包括在结果集中。
例如,以下查询的结果集的每一行都包含满足键连接条件的、来自 Customers 的一行和来自 SalesOrders 的一行的信息。如果某特定客户没有下任何订单,则该客户不满足键连接条件,因而结果集中不包含对应于该客户的行。
SELECT GivenName, Surname, OrderDate FROM Customers KEY INNER JOIN SalesOrders ORDER BY OrderDate;
因为内连接和键连接是缺省值,所以,您可以使用以下 FROM 子句获得与上述相同的结果:
SELECT GivenName, Surname, OrderDate FROM Customers JOIN SalesOrders ORDER BY OrderDate;