哦,我的SQL错了,改成这样的select * from table1 where t1_c1 in (select t1_c1 from table2 where t2_c=5) and t1_c2 in (select t1_c1 from table3 where t3_c=5);

解决方案 »

  1.   

    还是自己搜索到了
    就是left join两次,呵呵,居然能left join两次,刚知道~~
    最近都在补MYSQL~~我找到的解决方法在这里
    http://cclinux2.stut.edu.tw/~ericfang/discus/detail.php?titleid=22
      

  2.   

    似乎普通join就可以。left join是当左表有,右表没有的时候也选择
      

  3.   

    不能用left,用普通的就行了select * from table1 t1,table2 t2, table3 t3
    where t1.t1_c1 = t2.t2_c and t1.t1_c2=t3.t3_c and t2.t2_c=5 and t3.t3_c=5;