mysql_row_tell(3)
π mysql_row_tell β bestie, where is your cursor at?? π
okay so this is a page from the MariaDB Connector/C manual, and we're talking about mysql_row_tell(3) β the little function that tells you exactly which row your result cursor is sitting on. no cap, it's giving "where am I" but for your result set. π«Ά
β¨ NAME β¨
mysql_row_tell β returns the row offset of a result cursor π
β¨ SYNOPSIS β¨
#include <mysql.h>
MYSQL_ROW_OFFSET mysql_row_tell(MYSQL_RES * res);
like. that's the whole vibe. one arg, one return. slay. π
β¨ DESCRIPTION β¨
So basically mysql_row_tell() returns the row offset of a result cursor. π¦
and here's the iconic part: that offset value it hands you? you can feed it straight into mysql_row_seek(3) to reposition the result cursor. it's literally a lil bookmark for your result set. obsessed. β¨
β¨ PARAMETER β¨
resβ a result set identifier returned bymysql_store_result(3). that's it, that's the one. π
β¨ NOTES β¨
- π¨ important bestie: 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, no entry". π
β¨ SEE ALSO β¨
fr fr, if you need the cursor's location, this is your girl. if your result came from mysql_use_result(3), this is not your girl. π
and that's the whole page, bestie!! Version 3.4 of the MariaDB Connector/C manual, mysql_row_tell(3), signing off β go forth and seek responsibly πππ
π¦ 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