mysql_fetch_fields(3)
β¨ mysql_fetch_fields β bestie edition β¨
okay so this is a page from the MariaDB Connector/C manual (that's the manual name, in case you were wondering, and yes we're all collectively obsessed with it) π
πΈ NAME πΈ
mysql_fetch_fields β returns an array of fields π«Ά
π¦ SYNOPSIS π¦
#include <mysql.h>
MYSQL_FIELD * mysql_fetch_fields(MYSQL_RES * res);
π DESCRIPTION π
so listen. this function is doing literally the exact same job as mysql_fetch_field(3) β no cap, identical purpose β with one single difference, and it's kind of the whole personality:
instead of handing you one field at a time, one per field, it hands you all of them as an array. that's it. that's the vibe. main character energy: the whole group chat shows up at once instead of one friend at a time π
and bestie, each field in that array contains the definition for a column of the result set. every single one. periodt. π
π PARAMETERS π
resβ a result set identifier returned bymysql_store_result(3)ormysql_use_result(3). that's your ticket, your golden pass, the thing you got from one of those two functions, no substitutions allowed fr fr ποΈ
π NOTES π
the total number of fields can be obtained by mysql_field_count(3). so if you need to know how many lil fields you're working with β that's where you go, iykyk π«
β RETURN VALUE β
an array of type MYSQL_FIELD. that's the whole return. slay. π₯
π SEE ALSO π
and that's the page!! this was Version 3.4 of the MariaDB Connector/C manual, so if you ever forget which version you're reading, it's 3.4, and now you know π bye bestie, go fetch those fields π§β¨πΈ
π¦ 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