Get the App
SLTechnology News&Howtos  ›  Database  › 

Simple operation of mysql join query

Shulou Source: shulou.com Published: 2022-06-01 19:20:54 10月02日 Update

The following mainly brings you the simple operation of mysql join query. I hope these contents can bring you practical use, which is also the main purpose of this article that I edit the simple operation of mysql connection query. All right, don't talk too much nonsense, let's just read the following.

1.innerjoin (internal connection, or equivalent connection)

Select * from table1 inner join table2 on table1.column1= table2.column2

2.left join (left connection)

Select * from table1left join table2 on table1.column1= table2.column2

3.right join (right connection)

Select * from table1 right join table2 on table1.column1= table2.column2

4.select union

Select * from table1left join table2 on table1.column1= table2.column2 union select * from table1 right join table2 on table1.column1= table2.column2

For the above simple operation on the mysql connection query, we do not think it is very helpful. If you need to know more, please continue to follow our industry information. I'm sure you'll like it.

Tags: Query content following actual nonsense more usefulness purpose article industry information help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Redmi MySQL NVidia Microsoft