Home > Database > Mysql Tutorial > What are the internal and external queries of mysql?

What are the internal and external queries of mysql?

青灯夜游
Release: 2020-10-09 09:34:07
Original
2865 people have browsed it

Mysql's inner query uses conditional expressions to eliminate certain data rows in cross-connections by setting connection conditions. The query results are all records that meet the connection conditions; while the outer query will first connect the The table is divided into a base table and a reference table, and records that meet or do not meet the conditions are returned based on the base table.

What are the internal and external queries of mysql?

(Recommended tutorial: mysql video tutorial)

MySQL INNER JOIN: inner join Query

Inner JOIN mainly removes cross-connections of certain data rows in the query results by setting connection conditions. To put it simply, conditional expressions are used to eliminate certain data rows in cross-connections.

Inner join uses the INNER JOIN keyword to connect two tables, and uses the ON clause to set the connection conditions. Without join conditions, INNER JOIN and CROSS JOIN are syntactically equivalent and interchangeable.

The syntax format of inner join is as follows:

SELECT <字段名> FROM <表1> INNER JOIN <表2> [ON子句]
Copy after login

The syntax description is as follows: