Skip to content

mysql_batch_execute

imshooter edited this page Dec 1, 2026 · 2 revisions

Send the rows of a batch after the queries sent before it, call a public when they are done, and forget the batch.

Inside the public, cache_affected_rows gives the rows of all of them. A batch with no rows is not sent to the server, and its public is still called.

native bool:mysql_batch_execute(
    Batch:batch,
    const callback[] = "",
    const format[] = "",
    {Float, _}:...
);

With open.mp names, from the same include:

native bool:MySQL_ExecuteBatch(
    Batch:batch,
    const callback[] = "",
    const format[] = "",
    {Float, _}:...
);

Parameters

Parameter Description
Batch:batch The batch.
const callback[] = "" Public to call, or none.
const format[] = "" Letters of the values the public receives.
{Float, _}:... The values.

Returns

  • true when it was sent.
  • false when the batch does not exist, the callback is not a public of the script, the format does not match the values, or a limit of the handle refused it.

Home

Guides

Reference

Functions

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

Clone this wiki locally