--内连接
--select t.*,b.bumenmc from T_HQ_RYXX t,t_hq_bm b where t.bum = b.bumenbm
--select * from t_hq_ryxx t join t_hq_bm b on t.bum in b.bumenbm
--自连接
--select * from t_hq_ryxx a,t_hq_ryxx b where a.bum in b.bum and a.xingb = 2;
--左连接
--select * from t_hq_ryxx a left join t_hq_bm b on a.bum = b.bumenbm;
--select * from T_HQ_RYXX t,t_hq_bm b where t.bum = b.bumenbm(+)
--右连接
--select * from t_hq_ryxx a right join t_hq_bm b on a.bum = b.bumenbm;
--select * from T_HQ_RYXX t,t_hq_bm b where t.bum(+)= b.bumenbm
--全连接
--select * from t_hq_ryxx a full join t_hq_bm b on a.bum = b.bumenbm;
select * from T_HQ_RYXX t,t_hq_bm b where t.bum= b.bumenbm(+)
原文:http://www.cnblogs.com/shadowduke/p/4922031.html