mysql_next_result(3)
π« mysql_next_result β bestie, go get the NEXT result set
okay so real quick: this page lives in the MariaDB Connector/C manual (section 3, the library calls, iykyk). Let's get into it πΈ
π Name
mysql_next_result β prepares next result set β¨
π¦ Synopsis
#include <mysql.h>
int mysql_next_result(MYSQL * mysql);
π Description
so basically π β this one prepares the next result set from a previous call to mysql_real_query(3). and like, you then actually grab that result set with mysql_store_result(3) or mysql_use_result(3). the way it works is: returns zero on success, and nonzero if an error occurred. that's it, that's the whole vibe π
π Parameter
mysqlβ a mysql handle π«Ά which was previously allocated bymysql_init(3)and connected bymysql_real_connect(3). like, it has to be a real, live, connected handle bestie, no fake ones π
β¨ Notes
- π¨ if a multi query contains errors, the return value of
mysql_errno(3)andmysql_error(3)might change, and there will be no result set available. so like, don't be out here assuming there's a result waiting for you β because there is not π
π Return value
Returns zero on success, non zero value on error. periodt π
π See also
mwah π that's the whole page, you ate it, no crumbs. this was Version 3.4 of the MariaDB Connector/C manual β go forth and loop those result sets like the icon you are π§β¨
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms