在学习的时候看到的一个例子,受益良多
mysql之join
mysql无法全连接
所以可以使用union来实现

mysql之join
select * from a left join b on a.id = b.id
union
select * from a right join b on a.id = b.id;
注:unoin会自动去重

相关文章:

  • 2021-08-11
  • 2021-09-24
  • 2021-10-18
  • 2022-01-13
  • 2021-12-08
  • 2022-12-23
  • 2021-08-31
  • 2021-06-14
猜你喜欢
  • 2021-07-05
  • 2021-06-16
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-06-30
相关资源
相似解决方案