在MySQL里,有个和in一样的东东叫做exists,但是它比in更牛叉,你会么?
我们在学习Yii2的时候,一定接触过这样的where输入<pre<code$query>where(&34;exists&34;,xxxx);User::find()>where(&34;exists&34;,xxxx)>all();</code
我们在学习Yii2的时候,一定接触过这样的where输入<pre<code$query>where(&34;exists&34;,xxxx);User::find()>where(&34;exists&34;,xxxx)>all();</code