Customer::updateAll(['status' => 1], ['status'=> '2','uid'=>'1']);

等价于 update customer set status = 1 where status = 2 and uid = 1;

不能写成 Customer::find()-> updateAll(['status' => 1], ['status'=> '2','uid'=>'1']);  // ×

相关文章:

  • 2022-12-23
  • 2021-09-19
  • 2021-12-21
  • 2022-12-23
  • 2022-01-19
  • 2022-02-03
  • 2022-01-23
  • 2022-12-23
猜你喜欢
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2021-12-31
  • 2021-07-17
相关资源
相似解决方案