1mysql_stmt_result_metadata(3) MariaDB Connector/Cmysql_stmt_result_metadata(3)
2
3
4
5   Name
6       mysql_stmt_result_metadata  -  Returns  result set metadata from a pre‐
7       pared statement.
8
9   Synopsis
10              #include <mysql.h>
11
12              MYSQL_RES * mysql_stmt_result_metadata(MYSQL_STMT * stmt);
13
14   Description
15       If a statement passed to mysql_stmt_prepare(3) is one that  produces  a
16       result  set,  mysql_stmt_result_metadata()  returns the result set that
17       can be used to process the meta information such  as  total  number  of
18       fields and individual field information.
19
20   Parameter
21       • stmt  -  a  statement  handle,  which  was  previously  allocated  by
22         mysql_stmt_init(3).
23
24   Return value
25       Returns a result set that can be used to process metadata information.
26
27   Notes
28       • The result set returned by mysql_stmt_result_metadata() contains only
29         metadata.   It  does  not  contain any row results.  The rows are ob‐
30         tained by mysql_stmt_fetch(3).
31
32       • This result set pointer can be passed as an argument to  any  of  the
33         field-based  functions  that  process  result  set metadata, such as:
34         mysql_num_fields(3),   mysql_fetch_field(3),    mysql_fetch_field_di‐
35         rect(3),         mysql_fetch_fields(3),         mysql_field_count(3),
36         mysql_field_seek(3), mysql_field_tell(3), mysql_free_result(3)
37
38   See Also
39mariadb_stmt_fetch_fields(3)
40
41mysql_free_result(3)
42
43mysql_stmt_prepare(3)
44
45
46
47Version 3.2.2                                    mysql_stmt_result_metadata(3)
Impressum