表A
id type1 type2
01 02 03
02 55 66表B
id name
02 b1
55 b2表C
id name
03 c1
66 c2type1对应表B
type2对应表C
问题是怎么查询表A能把type1和type2里的name都查出来
id type1 type2
01 02 03
02 55 66表B
id name
02 b1
55 b2表C
id name
03 c1
66 c2type1对应表B
type2对应表C
问题是怎么查询表A能把type1和type2里的name都查出来
from TA a join TB b on a.type1=b.id
join TC c on a.type2=c.id