Left join and right join in MySQL

A left join uses the left table as the main table and joins all the records in the left table with the matching records in the right table. If the right table does not have matching records in the left table, it will be displayed as a NULL value.

The same applies to right join, generally speaking, left join is used.

Guess you like

Origin blog.csdn.net/weixin_54620350/article/details/131875485