MySQL 的各种 join

join 类型 备注
left [outer] join
right [outer] join
`union [all distinct]`
join、cross join、inner join In MySQL, JOIN, CROSS JOIN, and INNER JOIN are syntactic equivalents (they can replace each other). In standard SQL, they are not equivalent. INNER JOIN is used with an ON clause, CROSS JOIN is used otherwise.(此说明出于mysql命令行:mysql> help join)(在 MySQL中,join、cross join、inner join这3个是等价的)

参考:https://mp.weixin.qq.com/s?__biz=MzU4OTI3NzY4OA==&mid=2247483746&idx=1&sn=94b1a14569ff12a4776e48ee8e431ec3

posted on 2019-11-06 20:17  cag2050  阅读(128)  评论(0编辑  收藏  举报

导航