呜呜
那写简单些吧
假如table1有id1,name1,id2,id3
table2有id2,name2
table3有id3,name3
要显示name1,name2,name3,如果id1=11,table2的id2等于table1的id2,table3的id3等于table1的id3
这样大致差不多明白了吧

解决方案 »

  1.   

    try:select name1,name2,name3 from table1,table2,table3 where id1=11 and table2.id2=table1.id2 and table3.id3=table1.id3是这个意思吗
      

  2.   

    select a.name1,b.name2,c.name3 
    from table1 a,table2 b,table3 c
    where a.id1=11
    and a.id2=b.id2
    and a.id3=c.id3;
      

  3.   

    应该加上a.name1才行
    我开始想的过于复杂了
    呵呵
    谢谢大家