mariadb_dyn...te_many_num(3)
β¨ mariadb_dyncol_update_many_num β¨
okay bestie, welcome to the MariaDB Connector/C manual, page mariadb_dyn...te_many_num(3) π this one's a bop, let's go.
πΈ NAME πΈ
mariadb_dyncol_update_many_num β update, insert or delete values in a dynamic column using numeric keys π¦
β¨ SYNOPSIS β¨
#include <mariadb_dyncol.h>
enum enum_dyncol_func_result
mariadb_dyncol_update_many_num(DYNAMIC_COLUMN *str,
uint column_count,
uint *column_keys,
DYNAMIC_COLUMN_VALUE *values)
like, copy it exactly bestie, no typos, the compiler is NOT forgiving π
π DESCRIPTION π
So basically? You're adding, deleting, or updating columns in a dynamic column, and you're doing it with a numeric key. That's the whole vibe. Multiple columns, one call, we love efficiency π
π PARAMETER π
*strβ a pointer to a dynamic column structure πcolumn_countβ how many columns we're talking about, the count, the number, the quantity π’*column_keysβ an array of column keys, one per column, obvi ποΈ*valuesβ an array of values, matching up with those keys π
β RETURN VALUE β
It hands you back ER_DYNCOL_OK when everything slays, and otherwise... an error. π That's it, that's the deal.
π§ NOTES π§
- Wanna delete a column? You update its value to a "non-value"</> of type
DYN_COL_NULLπ that's the move, that's the trick, iykyk.
ngl this is the kind of thing that lives rent-free in your head once you know it. DYN_COL_NULL = bye bye column π
π SEE ALSO π
mariadb_dyncol_create_many_nummariadb_dyncol_update_many_named- Dynamic Column Error Codes
and that's the page, bestie π«Ά Version 3.4 of the MariaDB Connector/C manual, page mariadb_dyn...te_many_num(3) β go forth and update those dynamic columns, you absolute 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