MySQL 8.4.3
Source Code Documentation
COM_STMT_FETCH

Fetches the requested amount of rows from a resultset produced by COM_STMT_EXECUTE

Returns
COM_STMT_FETCH Response
Payload
TypeNameDescription
int<1> status [0x19] COM_STMT_CLOSE
int<4> statement_id ID of the prepared statement to close
int<4> num_rows max number of rows to return
See also
mysqld_stmt_fetch
mysql_stmt_fetch

COM_STMT_FETCH Response

COM_STMT_FETCH may return one of: