right join—左连接查询

right join 关键字会<从font color=red>右表 (table2) 返回所有的行,即使在左表 (table1) 中没有匹配的行。

语法:

SELECT column_name(s)
FROM table1
RIGHT JOIN table2
ON table1.column_name=table2.column_name

例子:
right join 右连接
right join 右连接
选出右表所有的行,然后用on后面的条件对左表进行对过滤,与右表进行匹配

相关文章:

  • 2021-03-31
  • 2021-06-15
  • 2021-11-20
  • 2021-10-28
  • 2021-05-26
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2021-08-29
相关资源
相似解决方案