我有三个表:
table1 id a1 a2 a3 a4 数据略
table2 id b1 b2 b3 b4 数据略
table3 id table2_id table1_id
1 1 4
2 1 6
3 1 2
4 2 1
5 2 7
我要在表三里查询出table2id为1的所有的table1id 数据,然后查table1里所对应的数据,然后输出出来,这个sql该怎么写呀
