设为首页 加入收藏

TOP

SQL-UsingOuterJoins
2015-11-21 01:57:54 来源: 作者: 【 】 浏览:0
Tags:SQL-UsingOuterJoins
Inner joins return rows only when there is at least one row from both tables that matches the join condition. Inner joins eliminate the rows that do not match with a row from the other table. Outer joins, however, return all rows from at least one of the tables or views mentioned in the FROM clause, as long as those rows meet any WHERE or HAVING search conditions. All rows are retrieved from the left table referenced with a left outer join, and all rows from the right table referenced in a right outer join. All rows from both tables are returned in a full outer join.

SQL Server uses the following ISO keywords for outer joins specified in a FROM clause:

LEFT OUTER JOIN or LEFT JOIN

RIGHT OUTER JOIN or RIGHT JOIN

FULL OUTER JOIN or FULL JOIN

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇postgresql模式与数据库的关系 下一篇sqlserver中如何批量修改一个表的..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: