--左外连接写法一
select b.service_gid,c.gid
from table1 b,table2 c
where b.service_gid= c.gid(+)
--左外连接写法二
select b.service_gid,c.gid
from table1 b,table2 c
on b.service_gid= c.gid
--右外连接写法一
select b.service_gid,c.gid
from table1 b,table2 c
where b.service_gid(+)= c.gid
--右外连接写法二
select b.service_gid,c.gid
from table1 b,table2 c
on b.service_gid= c.gid