现在有三张table。table1和table2分辨通过key1,key2和table3连接
现在想显示符合条件的table1的字段以及跟它通过table3连接的table2的一些字段
这个要怎么表示呢?

解决方案 »

  1.   

    select a.key,b.key1,c.key2.....
      from table a,table1 b,table2 c
     where a.key=b.key1 and a.key=c.key2
      

  2.   

    有点不一样
    是table1.key1=tabel3.key3
      tabel2.key2=table3.key4
    照二楼的写法不能正常显示
      

  3.   

    错误代码是ora-01722,无效数字
      

  4.   

    select 你要显示写什么字段
    from table1 ,table2 ,table3
    where 
    table1.key1=tabel3.key3 and table2.key2=table3.key4
    and ......