Documentation Home
MySQL 8.4 C API Developer Guide
Download this Manual
PDF (US Ltr) - 1.4Mb
PDF (A4) - 1.4Mb


6.4.13 mysql_stmt_fetch_column()

intmysql_stmt_fetch_column(MYSQL_STMT *stmt,                        MYSQL_BIND *bind,                        unsigned int column,                        unsigned long offset)

Description

Fetches one column from the current result set row.bind provides the buffer where data should be placed. It should be set up the same way as formysql_stmt_bind_result().column indicates which column to fetch. The first column is numbered 0.offset is the offset within the data value at which to begin retrieving data. This can be used for fetching the data value in pieces. The beginning of the value is offset 0.

Return Values

Zero for success. Nonzero if an error occurred.

Errors