Skip to content

mysql_batch_create

imshooter edited this page Dec 1, 2026 · 2 revisions

Start a batch of rows for a statement.

On MariaDB 10.2 or later the rows go to the server as arrays in one command, split to fit max_allowed_packet, and on other servers they run one by one. A batch sent in more than one command runs in a transaction of its own, unless one is open already.

native Batch:mysql_batch_create(Statement:statement);

With open.mp names, from the same include:

native Batch:MySQL_CreateBatch(Statement:statement);

Parameters

Parameter Description
Statement:statement The statement.

Returns

  • The batch.
  • MYSQL_INVALID_BATCH when the statement does not exist.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally