mysql_stmt_row_tell(3)
β¨ NAME β¨
mysql_stmt_row_tell β it literally tells you where the row cursor is at π
(it's a MariaDB Connector/C thing, bestie, so grab your mysql.h and come sit with me)
πΈ SYNOPSIS πΈ
#include <mysql.h>
MYSQL_ROW_OFFSET mysql_stmt_row_tell(MYSQL_STMT * stmt);
π DESCRIPTION π
okay so picture this: your result cursor is out there living its main character life, and you're like "bestie... where are you tho?" π
That's the whole job. mysql_stmt_row_tell() returns the row offset of a result cursor. And the tea is that the offset value it hands back? You can use it to reposition the result cursor by calling mysql_stmt_row_seek(3). So it's giving bookmark energy β save your spot, jump back whenever, iconic behavior fr fr π
π¦ PARAMETER π¦
stmtβ a statement handle, which was previously allocated bymysql_stmt_init(3). Like, it has to already exist, you can't just show up with vibes and no handle π
β RETURN VALUE β
Returns the current position of the row cursor. That's it, that's the gift π«Ά
π NOTES π
- This function can be used for buffered result sets only, which can be obtained by executing the
mysql_stmt_store_result(3)function.
lowkey important: buffered only!! if you didn't mysql_stmt_store_result(3) first, this is not the function for you, no cap π
π SEE ALSO π
Version 3.4 of MariaDB Connector/C, that's the era we're living in besties β¨ mwah, go slay some result sets, ily, drink water, 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