mysql_stmt_row_seek(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸŽ€

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