CI_DB_query_builder::update_batch()

update_batch($table[, $set = NULL[, $value = NULL[, $batch_size = 100]]])

Parameters:
  • $table (string) – Table name
  • $set (array) – Field name, or an associative array of field/value pairs
  • $value (string) – Field value, if $set is a single field
  • $batch_size (int) – Count of conditions to group in a single query
Returns:

Number of rows updated or FALSE on failure

Return type:

mixed

Compiles and executes batch UPDATE statements.

Note

When more than $batch_size field/value pairs are provided, multiple queries will be executed, each handling up to $batch_size field/value pairs.

doc_CodeIgniter
2016-10-15 16:31:23
Comments
Leave a Comment

Please login to continue.