mysql 全连接和 oracle 全连接查询、区别
oracle的全连接查询可以直接用full on,但是在mysql中没有full join,mysql使用union实现全连接.
oracle的全连接
select * from a full join b on a.id = b.id;
mysql的全连接
select * from a left join b on a.id = b.id union select * from a right join b on a.id = b.id;
参考:
https://blog.csdn.net/qq_36387683/article/details/93600415