Home> Database> Oracle> body text

Does Oracle's connection have a full connection?

WBOY
Release: 2022-06-09 14:18:52
Original
3105 people have browsed it

Oracle's connection has a full join; the connection in Oracle can be divided into inner join, outer join and full join. The query result of the full join is the union of the query results of the left outer join and the right outer join. The syntax is: "full join...on..."; When a row has no matching row in another table, the select list column of the other table contains null values.

Does Oracle's connection have a full connection?

The operating environment of this tutorial: Windows 10 system, Oracle version 12c, Dell G3 computer.

Oracle’s full join

Joints in Oracle can be divided into inner join, outer join, and full join

The syntax is full join ... on ...,

The query result of the full join is the union of the query results of the left outer join and the right outer join. Even if some records cannot be related, some records can be The information is queried:

Produces M N result sets, lists all of the two tables, and replaces those that do not meet the conditions with null values.

Examples are as follows:

Does Oracles connection have a full connection?

Full join: A complete outer join returns all rows in the left and right tables. When a row has no matching row in another table, the other table's select list column contains null values. If there are matching rows between tables, the entire result set row contains the data values from the base table.

select * from book as a full outer join stu as b on a.sutid = b.stuid
Copy after login

The results are as follows:

Does Oracles connection have a full connection?

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of Does Oracle's connection have a full connection?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!