mysql_info(3)
β¨ NAME β¨
Okay so bestie, meet mysql_info(3) from MariaDB Connector/C β she provides information about the last executed statement. No cap, that's the whole assignment, and she ate. π
β¨
πΈ SYNOPSIS πΈ
#include <mysql.h>
const char * mysql_info(MYSQL * mysql);
π DESCRIPTION π
The mysql_info() function returns a string providing information about the last statement executed. Lowkey iconic for peeking at what just happened. Periodt. π
π¦ PARAMETER π¦
mysqlβ a connection identifier, which was previously allocated bymysql_init(3)and connected bymysql_real_connect(3). Like, she needs to already be alive and connected, bestie. π«Ά
π NOTES π
Statements which do not fall into one of the preceding formats are not supported (e.g. SELECT). In these situations mysql_info() will return an empty string. So if you ask about a SELECT, don't expect lore β she's giving nothing. π
π RETURN VALUE π
Zero terminated information string. The information depends on statement type:
INSERT INTO...SELECT...β example result string:Records: 100 Duplicates: 0 Warnings: 0INSERT INTO...VALUES (...),(...),(...)β example result string:Records: 3 Duplicates: 0 Warnings: 0LOAD DATA INFILEβ example result string:Records: 1 Deleted: 0 Skipped: 0 Warnings: 0ALTER TABLE ...β example result string:Records: 3 Duplicates: 0 Warnings: 0UPDATE ...β example result string:Rows matched: 40 Changed: 40 Warnings: 0
π SEE ALSO π
Version 3.4, MariaDB Connector/C, mysql_info(3) β that's the whole page, bestie. Go be the main character of your database. πβ¨π
π¦ 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