mysql_row_seek(3)
π« mysql_row_seek β bestie, let's teleport that cursor
okay so this is a page from the MariaDB Connector/C manual, and we're talking about mysql_row_seek(3) β the function that yeets your row cursor to whatever row you want. no cap. π¦
β¨ Name β¨
mysql_row_seek β positions the row cursor to an arbitrary row. literally just "jump to row, you pick which one". main character energy fr. π
πΈ Synopsis πΈ
#include <mysql.h>
MYSQL_ROW_OFFSET mysql_row_seek(MYSQL_RES * result,
MYSQL_ROW_OFFSET offset);
that's the whole vibe. include the header, call the function, get a MYSQL_ROW_OFFSET back. periodt. π
π Description π
so like, mysql_row_seek positions the row cursor to an arbitrary row in a result set β but hear me out, bestie, it only works on a result set that was obtained by mysql_store_result(3). that's the whole thing. that's the function. it's giving "fast travel unlocked". β¨
π Parameter π
resultβ a result set identifier, and it's the one returned bymysql_store_result(3). no substitutions, she's specific. πoffsetβ the row offset. you can get this value from eithermysql_row_seek()ormysql_row_tell(3). so you can save a spot and come back to it later, iconic behaviour honestly. π
π¦ Notes π¦
- This function will not work if the result set was obtained by
mysql_use_result(3). like, at all. don't try it. it's giving "wrong door, babe". π
β Return value β
Returns the previous row offset. so it tells you where you were while it moves you to where you wanna be. very "here's your receipt, enjoy your new row" of it. π§Ύβ¨
π See also π
and that's the page, bestie!! π this was pulled straight from the MariaDB Connector/C docs, Version 3.4 β so if you're out here seeking rows like the icon you are, you're on the right version. 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