Repository navigation
MySQL_RunStatement
imshooter edited this page Nov 3, 2026
·
3 revisions
Run a statement once and wait for it, as MySQL_Run does.
native bool:MySQL_RunStatement(Statement:statement, MYSQL_TAGS:...);| Parameter | Description |
|---|---|
Statement:statement |
The statement. |
MYSQL_TAGS:... |
A value for each specifier. |
-
truewhen it succeeded. -
falsewhen it failed, the statement does not exist, the values do not match it, or a limit of the connection refused it.
It waits as MySQL_Run does, so the statements and queries sent before it run first.
new Statement:gCountItems;
stock CountItems(owner) {
new
total
;
if (MySQL_RunStatement(gCountItems, owner)) {
MySQL_GetValueInt(0, "total", total);
}
return total;
}- MySQL_ExecuteStatement: Run a statement once, after the queries sent before it.
- MySQL_Run: Run a query and wait for it, after the queries sent before it.
MySQL 0.3.0 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Queries
- Results
- JSON cells
- Prepared statements
- Passwords
- Errors
- TLS
- Coming from R41
- Performance
Reference
Functions