修改的方法
update() 公共 方法
Creates an UPDATE SQL statement.
For example,
$params = [];
$sql = $queryBuilder->update('user', ['status' => 1], 'age > 30', $params);
The method will properly escape the table and column names.
| public string update($table, $columns, $condition, &$params) | ||
|---|---|---|
| $table | string | 要改的表 |
| $columns | array | 要修改的数据 |
| $condition | array | string |
| $params | array | 此方法将修改的绑定参数,以便稍后将它们绑定到DB命令。 |
| return | string | 返回sql语句 |