mysql_data_seek(3)
β¨ mysql_data_seek β seek to an offset, bestie β¨
okay so picture this: you're deep in a MariaDB Connector/C situation, you've got a whole result set sitting there, and you wanna just jump to a specific row like it's a Spotify playlist and you're skipping straight to the banger. that's this function. it's from the MariaDB Connector/C manual and honestly? it's giving teleportation. π¦
πΈ NAME πΈ
mysql_data_seek</p> β seeks to an offset π
π SYNOPSIS π
#include <mysql.h>
void mysql_data_seek(MYSQL_RES * result,
my_ulonglong offset);
π DESCRIPTION π
The mysql_data_seek() function seeks to an arbitrary function result pointer specified by the offset in the result set. Returns zero on success, nonzero if an error occurred.
so basically: you point at wherever you wanna be in the result set, and it goes there. returns 0 when it ate, nonzero when it didn't. that's the whole vibe check. β¨
π PARAMETERS π
resultβ a result set identifier returned bymysql_store_result(). like, you can't just make one up, it's gotta come from there, iykyk. π«Άoffsetβ the field offset. Must be between zero and the total number of rows minus one (0..mysql_num_rows - 1). fr fr, respect the range or it's not gonna be cute. π
π§ NOTES π§
This function can only be used with buffered result sets obtained from the use of the mysql_store_result(3) function.
read that again bestie. only buffered result sets, only ones that came out of mysql_store_result(3).** no exceptions, no workarounds, no main character loopholes. π
π SEE ALSO π
and that's the whole page, periodt. go seek some offsets, you iconic little coder. π
this lil guide is straight outta <strong>Version 3.4</strong> of the MariaDB Connector/C docs β catch you in the next manpage, mwah ππ¦β
π¦ 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