ThinkPHP的联表查询

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36602939/article/details/79954707
 $join = [
            ['users w','a.user_id=w.user_id'],
        ];
$user = Db::table('tp_users_kd')->alias('a')->join($join)->field('w.openid')->where(array('a.tuisong' => 1 , 'a.is_validated' => 5 ))->select();

阅读更多

没有更多推荐了,返回首页