Skip to content

mysql_query_file

imshooter edited this page Nov 29, 2026 · 1 revision

Run the queries of a file in scriptfiles and wait for them.

native Cache:mysql_query_file(MySQL:handle, const file_path[], bool:use_cache = false);

With open.mp names, from the same include:

native Cache:MySQL_QueryFile(MySQL:handle, const file_path[], bool:use_cache = false);

Parameters

Parameter Description
MySQL:handle Handle to run them through.
const file_path[] Path of the file inside scriptfiles.
bool:use_cache = false Whether to keep their results.

Returns

  • The results.
  • MYSQL_INVALID_CACHE when one 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