yii2 数据查询
$this->find()->where(['product_id', $ids])->count();
$this->find()->where(['in', 'product_id', $ids])->count();
这两种写的结果一样,写'in'和不写有什么实质的区别?
yii2 数据查询
$this->find()->where(['product_id', $ids])->count();
$this->find()->where(['in', 'product_id', $ids])->count();
这两种写的结果一样,写'in'和不写有什么实质的区别?