mysql_stmt_fetch_column(3)
β¨ mysql_stmt_fetch_column β the MariaDB Connector/C glow-up π
okay bestie, quick vibe check: this is a page from the MariaDB Connector/C manual, and we're talking about mysql_stmt_fetch_column. it's giving β¨precision snackingβ¨ β you don't have to eat the whole column in one bite.
π NAME π
mysql_stmt_fetch_column β fetches a single column into a bind buffer π«Ά
π¦ SYNOPSIS π¦
#include <mysql.h>
int mysql_stmt_fetch_column(MYSQL_STMT * stmt,
MYSQL_BIND * bind_arg,
unsigned int column,
unsigned long offset);
πΈ DESCRIPTION πΈ
so like. sometimes a column is huge. like, unreasonably big. and this function is the answer to that, no cap: you can use mysql_stmt_fetch_column to fetch large data of a single column in pieces. little bites. tiny sips. one chunk at a time, on your terms π
π PARAMETER π
stmtβ a statement handle, which was previously allocated bymysql_stmt_init(3). your main character, basically πbind_argβ a pointer to aMYSQL_BINDstructure.columnβ number of column, first column is numbered zero. yes bestie, zero-indexed, we start counting at 0 πoffsetβ offset at which to begin retrieving data.
β RETURN VALUE β
Returns zero on success, non-zero on failure. that's it, that's the tea π
π NOTES π
- The size of the buffer is specified within
MYSQL_BINDstructure. so like, theMYSQL_BINDis holding the bag on how much room you've got π
π₯ SEE ALSO π₯
and that's a wrap, bestie!! this was Version 3.4 of the MariaDB Connector/C manual, mysql_stmt_fetch_column(3) β go forth and fetch in pieces, you icon π
β¨π¦
π¦ 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