For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

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.

spinner

Last updated

Was this helpful?