select tA.id,(select tB.C from tA,tB where tA.C1=tB.id),(select tB.C from tA,tB where tA.C2=tB.id)
from tA
不知道效果怎么样
没试