TP里的关联查询

$res = $db->join('b on a.ex_id = b.pe_eid')->select();

注意:这里的表a、表b需要带表前缀

原文地址:https://www.cnblogs.com/rickons/p/4580537.html