sqlite数据库执行full outer join
sqlite数据库执行full outer join时提示:RIGHT and FULL OUTER JOINs are not currently supported。
sqlite数据库不支持(+),不支持右外连接(right outer join)和全外连接(full outer join),但支持左外连接(left outer join)。我们可以利用这一点来得到全外连接的结果
1.left outer join
Select * From aa left outer join bb on aa.id=bb.id
2.right outer join
select * from bb left outer join aa on aa.id=bb.id
3.full outer join
Select aa.*,bb.* from aa left outer join bb on aa.id=bb.id
union
select aa.*,bb.* from bb left outer join aa on aa.id=bb.id