<br />select A.*,B.*,C.* from A<br />left join B on A.id = B.aid<br />left join C on A.id = B. a2id<br />
------解决思路---------------------- $user = M('A'); $user->join("left join B on A.id=B.Id left join C on c.id=b.id")->field("A.id as aid,B,id as bid,……")->select();