$this->updateAll($data, $where);
$data = [‘groupid’=>1];
//如 条件为 province=1, city=2
$where = [‘province’=>1, ‘city’=>2];
还想加个id in(1,2,3) 的条件进去 请教下怎么写
$where = ['province' => 1, 'city' => 2, 'id' => [1, 2, 3]]
Yii\db\Query
下面是官網的範例:
Where 使用方法可以詳閱
http://www.yiiframework.com/doc-2.0/yii-db-query.html
如果是小于,怎么写呢,大佬