thinkphp 多表查询jion 两种方法

第一种:
$data = M('user as a')->join('jifen as b on b.id = a.id')->where('a.id = 1')->select();

第二种:
$data = M()->table('user as a')->join('jifen as b on b.id = a.id')->where(' a.id = 1 ')->select();
原文地址:https://www.cnblogs.com/ymj0906/p/8534532.html