Skip to content

mysql_query

imshooter edited this page Dec 1, 2026 · 2 revisions

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

The server stops while it waits, so it suits the tables made at start up. A saved result is the active cache until another one is chosen, and stays until cache_delete.

native Cache:mysql_query(MySQL:handle, const query[], bool:use_cache = true);

Parameters

Parameter Description
MySQL:handle Handle to run it through.
const query[] The query.
bool:use_cache = true Whether to keep its result.

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