https://www.runoob.com/w3cnote/sql-join-the-different-of-on-and-where.html

image.png

关键字 on

数据库在通过连接两张或多张表来返回记录时,都会生成一张中间的临时表,然后再将这张临时表返回给用户。

在使用 left join 时,on 和 where 条件的区别如下: