thinkphp多表联查的几种方法
例如我要查询的原生sql语句为:select a.*,b.* from user as a left join userinfo as b on a.id=b.uidthinkphp里面可以写为:$result = M('user')->table('user as a')->join('userinfo as b ...
例如我要查询的原生sql语句为:select a.*,b.* from user as a left join userinfo as b on a.id=b.uidthinkphp里面可以写为:$result = M('user')->table('user as a')->join('userinfo as b ...