呜呜
那写简单些吧
假如table1有id1,name1,id2,id3
table2有id2,name2
table3有id3,name3
要显示name1,name2,name3,如果id1=11,table2的id2等于table1的id2,table3的id3等于table1的id3
这样大致差不多明白了吧
那写简单些吧
假如table1有id1,name1,id2,id3
table2有id2,name2
table3有id3,name3
要显示name1,name2,name3,如果id1=11,table2的id2等于table1的id2,table3的id3等于table1的id3
这样大致差不多明白了吧
from table1 a,table2 b,table3 c
where a.id1=11
and a.id2=b.id2
and a.id3=c.id3;
我开始想的过于复杂了
呵呵
谢谢大家