CI_DB_query_builder::insert_batch()

insert_batch($table[, $set = NULL[, $escape = NULL[, $batch_size = 100]]])

Parameters:
  • $table (string) – Table name
  • $set (array) – Data to insert
  • $escape (bool) – Whether to escape values and identifiers
  • $batch_size (int) – Count of rows to insert at once
Returns:

Number of rows inserted or FALSE on failure

Return type:

mixed

Compiles and executes batch INSERT statements.

Note

When more than $batch_size rows are provided, multiple INSERT queries will be executed, each trying to insert up to $batch_size rows.

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

Please login to continue.