Questions tagged «right-join»

10
SQL Server中左联接和右联接之间的区别
我知道SQL Server中的联接。 例如。有两个表Table1,Table2。 它们的表结构如下。 create table Table1 (id int, Name varchar (10)) create table Table2 (id int, Name varchar (10)) 表1的数据如下: Id Name ------------- 1 A 2 B 表2数据如下: Id Name ------------- 1 A 2 B 3 C 如果我同时执行下面提到的两个SQL语句,则两个输出将相同 select * from Table1 left join Table2 on Table1.id = Table2.id …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.