mysql_stmt_result_metadata
mysql_stmt_result_metadata retrieves result-set metadata from a Connector/C prepared statement; the returned MYSQL_RES contains field information but no row data.
Syntax
MYSQL_RES * mysql_stmt_result_metadata(MYSQL_STMT * stmt);Parameter
stmt- a statement handle, which was previously allocated by mysql_stmt_init().
Description
If a statement passed to mysql_stmt_prepare() is one that produces a result set, mysql_stmt_result_metadata() returns the result set that can be used to process the meta information such as the total number of fields and individual field information.
Return Value
Returns a result set that can be used to process metadata information.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

