mysql_stmt_row_seek(3)
π NAME π
mysql_stmt_row_seek β positions row cursor. fr fr, that's the whole vibe.
okay bestie, real talk: this page is from the MariaDB Connector/C manual, and it's all about moving your row cursor around like it's a little cursor on a map. let's get into it β¨
β¨ SYNOPSIS β¨
#include <mysql.h>
MYSQL_ROW_OFFSET mysql_stmt_row_seek(MYSQL_STMT * stmt,
MYSQL_ROW_OFFSET offset);
not me showing you the exact signature, periodt. π
πΌ DESCRIPTION πΌ
Positions the row cursor to an arbitrary row in a result set which was obtained by mysql_stmt_store_result(3).
it's giving "teleport but for rows" β you pick a row, the cursor goes there. iconic behavior honestly. π¦
π PARAMETER π
stmtβ a statement handle, which was previously allocated bymysql_stmt_init(3).offsetβ row offset. This value can be obtained either bymysql_stmt_row_seek()ormysql_stmt_row_tell(3).
two params, zero drama, we love to see it. πΈ
π« RETURN VALUE π«
Returns the previous row offset.
so it's like, "here's where you were before, bestie." keep that receipt. π§Ύβ¨
β οΈ NOTES β οΈ
The result set must be obtained by mysql_use_result(3).
okay this is important β read it twice. the result set has to come from mysql_use_result(3) for this to work, no cap. ππ
π SEE ALSO π
go read these next, iykyk. π«Ά
and that's the page, bestie. this was Version 3.4 of the MariaDB Connector/C manual, for mysql_stmt_row_seek(3) β mwah, love u, bye πππ
π¦ 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