Mysql实现全外部连接(mysql无法使用full join的解决办法)

由于mysql不支持full join,可以用left join,加上union 以及 right join。

select * from user left join uorder o on userid=o.uid
UNION
select * from user right join uorder o on userid=o.uid

你可能感兴趣的:(数据库,mysql,数据库,sql,java,hive)