Skip to content

mysql_query_format

imshooter edited this page Dec 1, 2026 · 2 revisions

Format a query, run it and wait for it, after the queries sent before it.

native Cache:mysql_query_format(MySQL:handle, const query[], bool:use_cache, MYSQL_TAGS:...);

With open.mp names, from the same include:

native Cache:MySQL_Query(MySQL:handle, const query[], bool:use_cache, MYSQL_TAGS:...);

Parameters

Parameter Description
MySQL:handle Handle to run it through.
const query[] The query, formatted with the values after it, or taken as it is without any.
bool:use_cache Whether to keep its result.
MYSQL_TAGS:... The values of the query.

Returns

  • The result.
  • MYSQL_INVALID_CACHE when it failed, or use_cache is false.

Home

Guides

Reference

Functions

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

Clone this wiki locally