Skip to content

mysql_format

imshooter edited this page Nov 29, 2026 · 1 revision

Format a query into an array.

native mysql_format(MySQL:handle, output[], max_len, const format[], MYSQL_TAGS:...);

With open.mp names, from the same include:

native MySQL_Format(MySQL:handle, output[], max_len, const format[], MYSQL_TAGS:...);

Parameters

Parameter Description
MySQL:handle Handle whose escaping is used.
output[] Array for the query.
max_len Size of the array.
const format[] The query, formatted with the values after it.
MYSQL_TAGS:... The values of the query, formatted into it.

Returns

  • The length of the query.
  • 0 when it does not fit, and the array is left empty, or the format is not valid.

Home

Guides

Reference

Functions

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

Clone this wiki locally