1mysql_info(3) MariaDB Connector/C mysql_info(3)
2
3
4
5 Name
6 mysql_info - provides information about the last executed statement
7
8 Synopsis
9 #include <mysql.h>
10
11 const char * mysql_info(MYSQL * mysql);
12
13 Description
14 The mysql_info() function returns a string providing information about
15 the last statement executed.
16
17 Parameter
18 • mysql - a connection identifier, which was previously allocated by
19 mysql_init(3) and connected by mysql_real_connect(3).
20
21 Notes
22 Statements which do not fall into one of the preceding formats are not
23 supported (e.g. SELECT). In these situations mysql_info() will return
24 an empty string.
25
26 Return value
27 Zero terminated information string. The information depends on state‐
28 ment type:
29
30 Query type Example result string
31 ──────────────────────────────────────────────────────────────────────────
32 INSERT INTO...SELECT... Records: 100 Duplicates: 0 Warn‐
33 ings: 0
34 INSERT INTO...VALUES Records: 3 Duplicates: 0 Warnings:
35 (...),(...),(...) 0
36 LOAD DATA INFILE Records: 1 Deleted: 0 Skipped: 0
37 Warnings: 0
38 ALTER TABLE ... Records: 3 Duplicates: 0 Warnings:
39 0
40 UPDATE ... Rows matched: 40 Changed: 40 Warn‐
41 ings: 0
42
43 See also
44 • mysql_affected_rows(3)
45
46 • mysql_warning_count(3)
47
48
49
50Version 3.2.2 mysql_info(3)