Repository navigation
MySQL_GetResultSetCount
imshooter edited this page Nov 3, 2026
·
2 revisions
How many statements of the query read gave a result.
A query with several statements has a result for each. The first one is read until MySQL_SelectResultSet chooses another.
native MySQL_GetResultSetCount();A query holding several statements, with multi_statements on, or a stored procedure gives a set for each statement. The natives read the first one until another is selected.
new MySQL:gDatabase;
stock PrintCounts() {
new
players,
bans
;
if (!MySQL_Run(gDatabase, "SELECT COUNT(*) AS total FROM players; SELECT COUNT(*) AS total FROM bans")) {
return;
}
MySQL_GetValueInt(0, "total", players);
MySQL_SelectResultSet(1);
MySQL_GetValueInt(0, "total", bans);
printf("%i players, %i bans", players, bans);
}- MySQL_SelectResultSet: Choose which statement of the query read the natives read.
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