select * from “table1” A inner join “table2”B on A.id=B.AID
inner join 关联查询所取数据是 A和B的交集
select * from “table1” A full join “table2”B on A.id=B.AID
full join 关联查询所取数据是 A和B的并集,没有匹配的数据以空显示
select * from “table1” A left join “table2”B on A.id=B.AID
left join 关联查询所取数据是 A完全集,没有匹配的数据以空显示
select * from “table1” A right join “table2”B on A.id=B.AID
right join 关联查询所取数据是 以B为基础
select * from “table1” A union select * from “table2”B
select * from “table1” A unionAll select * from “table2”B
select * from “table1” A full join “table2”B on A.id=B.AID
full join 关联查询所取数据是 A和B的并集,没有匹配的数据以空显示