select tab1.a,tab3.详细信息 from tab1,tab3 where tab1.a = tab3.a;上句是,tab1中的数据在tab3中一定有数据相对应.如果不是:select tab1.a,tab3.详细信息 from tab1,tab3 where tab1.a(+) = tab3.a; HQ.Wang 海清
select table1.a table3.各个字段的值 from table1,table3 where table.a = table.a条件你可以自己写了,要是根据别的表,你可以在加条件的
select * from tab3 where exists(select 1 from tab2 where a=tab3.a and exists(select 1 from tab1 where a=tab2.a))
from tab1,tab3
where tab1.a = tab3.a;上句是,tab1中的数据在tab3中一定有数据相对应.如果不是:select tab1.a,tab3.详细信息
from tab1,tab3
where tab1.a(+) = tab3.a;
HQ.Wang 海清
是怎么排列的呢,如果我要从列名来区分是不是可能?因为对印的列名是一样的。
并且设计的表很多,个个表中涉及的信息挺多,是不是用exist会比较好,还是in.