public update ( string $index, array $columns, string | array $condition = '', array $params = [], array $options = [] ) | ||
$index | string | the index to be updated. |
$columns | array | the column data (name => value) to be updated. |
$condition | string | array | the condition that will be put in the WHERE part. Please refer to [[Query::where()]] on how to specify condition. |
$params | array | the parameters to be bound to the command |
$options | array | list of options in format: optionName => optionValue |