mysql oracle fully connected and fully connected inquiry, the difference

 

oracle full-join queries can be full on, but no full join directly in mysql, mysql using the union to achieve full connectivity.

 

oracle fully connected

select * from a full join b on a.id = b.id;

mysql fully connected

select * from a left join b on a.id = b.id union select * from a right join b on a.id = b.id;

 

 

reference:

https://blog.csdn.net/qq_36387683/article/details/93600415

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11361526.html