mysql_stmt_data_seek(3)
β¨ mysql_stmt_data_seek β¨
okay bestie, we're in the MariaDB Connector/C manual section and today's main character is mysql_stmt_data_seek(3) β the lil function that lets you jump around inside a result set like you're scrolling back up in the group chat π
π Name π
mysql_stmt_data_seek β seeks to an arbitrary row in a statement result set. no cap, that's literally it. you pick a row, it goes there. β¨
π¦ Synopsis π¦
#include <mysql.h>
void mysql_stmt_data_seek(MYSQL_STMT * stmt,
my_ulonglong offset);
πΈ Description πΈ
so here's the tea β β mysql_stmt_data_seek seeks to an arbitrary row in a statement result set. and where does that result set come from? from a previous call to mysql_stmt_store_result(3). you gotta have stored it first, bestie, otherwise there's nothing to seek around in π
π Parameter π
stmtβ a statement handle, which was previously allocated bymysql_stmt_init(3). it's giving "you must have made this first" energy π«Άoffsetβ row offset. this value must between 0 and number of rows - 1. so like,0up torows - 1, and nothing outside that range, okay? periodt.
β Return value β
Returns void. that's it, that's the whole return value. no status code, no drama, just void π
π Notes π
- The number of rows can be obtained with the function
mysql_stmt_num_rows(3). so if you need to know your upper bound foroffset, that's your girl π
π₯ See Also π₯
Version 3.4 of the MariaDB Connector/C manual, bestie β and with that, mysql_stmt_data_seek(3) is a wrap. go seek some rows, slay responsibly, and don't forget to store your result set first πβ¨π¦
π¦ 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