Search Results
https://dev.mysql.com/doc/c-api/8.4/en/mysql-bind-param.html
bool mysql_bind_param(MYSQL *mysql, unsigned n_params, MYSQL_BIND *bind, const char **name) Description mysql_bind_param(), available as of MySQL 8.0.23, enables defining attributes that apply to the next query sent to the server. For discussion of ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-errno.html
For example, the mysql client program displays errors using the following format, where 1146 is the mysql_errno() value and '42S02' is the corresponding mysql_sqlstate() value: $> SELECT * FROM no_such_table; ERROR 1146 (42S02): Table ... unsigned ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-info.html
const char * mysql_info(MYSQL *mysql) Description Retrieves a string providing information about the most recently executed statement, but only for the statements listed here. The format of the string varies depending on the type of statement, as ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-list-fields.html
MYSQL_RES * mysql_list_fields(MYSQL *mysql, const char *table, const char *wild) Description Note mysql_list_fields() is deprecated and is subject to removal in a future version of MySQL. Instead, use mysql_real_query() or mysql_query() to execute ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-num-rows.html
mysql_num_rows() is intended for use with statements that return a result set, such as SELECT. uint64_t mysql_num_rows(MYSQL_RES *result) Description Returns the number of rows in the result set. The use of mysql_num_rows() depends on whether you ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-session-track-get-first.html
int mysql_session_track_get_first(MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length) Description MySQL implements a session tracker mechanism whereby the server returns information about session state changes to ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-sqlstate.html
For example, the mysql client program displays errors using the following format, where 1146 is the mysql_errno() value and '42S02' is the corresponding mysql_sqlstate() value: $> SELECT * FROM no_such_table; ERROR 1146 (42S02): Table ... const char ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-bind-named-param.html
bool mysql_stmt_bind_named_param(MYSQL_STMT *stmt, MYSQL_BIND *binds, unsigned n_params, const char **names) Description mysql_stmt_bind_named_param() sets up unnamed and named (query attributes) bind parameters for prepared statements. This ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-execute.html
For a statement such as SELECT that generates a result set, you must call mysql_stmt_fetch() to fetch the data prior to calling any other functions that result in query processing. int mysql_stmt_execute(MYSQL_STMT *stmt) Description ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-num-rows.html
mysql_stmt_num_rows() is intended for use with statements that return a result set, such as SELECT. uint64_t mysql_stmt_num_rows(MYSQL_STMT *stmt) Description Returns the number of rows in the result set. The use of mysql_stmt_num_rows() depends on ...