Get the App
SLTechnology News&Howtos  ›  Database  › 

Sql what's the difference between a left connection LEFT JOIN and a right connection RIGHT JOIN?

Shulou Source: shulou.com Published: 2022-05-31 23:52:27 10月03日 Update

This article mainly introduces the sql left connection LEFT JOIN and right connection RIGHT JOIN what is the difference, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to know about it.

The difference between sql left join and right join is that the left join reads all the data of the left data table, even if the right data table has no corresponding data, while the right join reads all the data of the right data table, even if the left data table has no corresponding data.

Left connection:

Keyword: LEFT JOIN

Left table: books right table: articles

The left join reads all the data from the left data table, even if the right data table has no corresponding data. (if the data in two tables have the same part, only one is displayed)

Right connection:

Keyword: RIGHT JOIN

Left table: books right table: articles

The right join reads all the data from the data table on the right, even if the data table on the left has no corresponding data. (if the data in two tables have the same part, only one is displayed)

Thank you for reading this article carefully. I hope the article "what's the difference between sql left connection LEFT JOIN and right connection RIGHT JOIN" shared by the editor is helpful to everyone. At the same time, I also hope you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Data datasheet right article same two key keyword part value interest at the same time more friends knowledge editing industry information information channel channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno Linux Shulou Information Microsoft