yii2 多表联查 where条件里 A表字段=B表字段怎么表示?
$res =self::find()->select(['a.id','a.name'])
->join('LEFT JOIN','b','b.qid=a.id')
->join('LEFT JOIN','c','c.uid=b.uid')
->where(['a.state'=>0,'b.state'=>0,'c.state'=>0,'c.uid'=>123456])
->asArray()->all();
想在where条件里加上c.type=b.type怎么加???
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。