Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. UPDATE table_name SET forum=300 WHERE forum=200;
  2.  
  3. $customer = Account::find()
  4. ->select(['salt_activ'])
  5. ->where(['forum' => 200])
  6. ->one();
  7. $customer->forum = 300;
  8. $customer->update();
  9.  
  10. $customer = Account::find()
  11. ->where(['forum' => 200])
  12. ->one();
  13. $customer->forum = 300;
  14. $customer->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement