Get the App
SLTechnology News&Howtos  ›  Database  › 

What are the functions and limitations of external connections in Oracle database

Shulou Source: shulou.com Published: 2022-05-31 12:54:42 09月28日 Update

Oracle database of Chinese and foreign connections and what are the restrictions, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

What are the functions and limitations of external connections in Oracle database

Outer link: even if the column in the connection contains a null value, the outer link returns a row. You can use the outer link operator to perform an outer link in the connection condition; the outer link operator is a plus sign enclosed in parentheses: (+)

It is important to note that although an outer link can be placed on either side of the join operator, it should usually be placed on the opposite side of the column containing null values in the row you want to retrieve.

1. Left outer connection and right outer connection

External links can be divided into two categories: left outer connection and right outer connection. To understand the difference between left outer connection and right outer connection, consider the following syntax:

SELECT.

FROM table1,table2...

Suppose these two tables join table1.column1 and table2.column2: then assume that table1 contains a row with a null value of column1. To perform a left outer join, the WHERE clause is as follows:

WHERE table1.column1=table2.column (+)

In the left outer join, the outer link operator is actually equal to the right side of the operator. In the right outer join, the outer link operator is actually equal to the left side of the operator.

two。 Restrictions on external links

There are some restrictions in the use of external links, such as using the outer join operator only on one end of the outer link, but not on both ends at the same time. If you try to use the outer join operator on both ends of the connection, you will see an error. In addition, you cannot use both an external link condition and an IN operator, nor can you use both an external link condition and another join condition that uses the OR operator.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Links operators restrictions conditions at the same time functions data database one line both ends actual actually package help clear one end two content plus sign right Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei NVidia Redmi MySQL Microsoft