更新数据

WHERE UPDATE

  1. $client->queryBuilder()->where('whereUpdate', 'whereValue')->update('updateTable', ['a' => 1]);

LIMIT UPDATE

  1. $client->queryBuilder()->update('updateTable', ['a' => 1], 5);

快捷更新

  1. $client->queryBuilder()
  2. ->where('whereUpdate', 'whereValue')
  3. ->update('updateTable', [
  4. 'age' => QueryBuilder::inc(1),
  5. 'number' => QueryBuilder::dec(3),
  6. ]);