如下图A表和B表。
Inner join
Full join
Select * from tableA full join tableB on tableA.name=tableB.name where tableA .id IS null OR tableB .id IS null
可以用来对生产或者测试上的数据进行补数据的操作。
Left join
Union
如下图A表和B表。
Select * from tableA full join tableB on tableA.name=tableB.name where tableA .id IS null OR tableB .id IS null
可以用来对生产或者测试上的数据进行补数据的操作。