mysql_stmt_fetch_column — Fetches a single column in to a bind buffer

int mysql_stmt_fetch_column(MYSQL_STMT * stmt,
                            MYSQL_BIND * bind_arg,
                            unsigned int column,
                            unsigned long offset);

This function can be used to fetch large data of a single column in pieces.

Parameters

stmt

A statement handle, which was previously allocated by mysql_stmt_init().

bind_arg

A pointer to a MYSQL_BIND structure

column

number of column, first column is numbered zero.

offset

Offset at which to begin retrieving data.

Return value

Zero on success, non-zero on failure

[Note]

The size of the buffer is specified within MYSQL_BIND structure.

See also

mysql_stmt_fetch(), mysql_stmt_send_long_data()