create view v_demo as
select t1.a,t1.b.t1.c,t2.d,t3.e from table1 t1,table2 t2,table3 t3
where t1.b=t2.b(+) and t1.c=t3.c(+);

解决方案 »

  1.   

    --左关联t1
    create view v_demo as
    select t1.a,t1.b.t1.c,t2.d,t3.e from table1 t1,table2 t2,table3 t3
    where t1.b(+)=t2.b and t1.c(+)=t3.c;
      

  2.   

    bzszp(www.bzszp.533.net) 的正确,我搞错了
      

  3.   

    bzszp(www.bzszp.533.net) is right
      

  4.   

    可是,做了这个语句后,VIEW1中的记录数比TABLE1中的多了,我查了一下,又好几条纪录是重复的,奇怪阿?另外,我TABLE1是在另外一台远程的服务器上,我知道那台机器的IP和服务名等,建视图的时候怎么写比较好?谢谢
      

  5.   

    create  view  v_demo  as  
    select  t1.a,t1.b.t1.c,t2.d,t3.e  
    from  table1  t1,
    (select b,max(d) d from table2)  t2,
    (select c,max(e) e from table3)  t3  
    where  t1.b=t2.b(+)  and  t1.c=t3.c(+);