Search Results
https://dev.mysql.com/doc/c-api/8.4/en/getting-unique-id.html
For LAST_INSERT_ID(), the most recently generated ID is maintained in the server on a per-connection basis. For information on obtaining the auto-incremented value when using Connector/J, see Retrieving AUTO_INCREMENT Column Values through JDBC. For ... If you insert a record into a table that contains an AUTO_INCREMENT column, you can obtain the value stored into that column by calling the mysql_insert_id() ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-affected-rows.html
If you specify the CLIENT_FOUND_ROWS flag to mysql_real_connect() when connecting to mysqld, the affected-rows value is the number of rows “found”; that is, matched by the WHERE clause. uint64_t mysql_affected_rows(MYSQL *mysql) Description ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-binlog-close.html
void mysql_binlog_close(MYSQL *mysql, MYSQL_RPL *rpl) Description Close a replication event stream. After calling mysql_binlog_close(), this structure should not be used further without reinitializing it and calling mysql_binlog_open() again.
https://dev.mysql.com/doc/c-api/8.4/en/mysql-binlog-fetch.html
int mysql_binlog_fetch(MYSQL *mysql, MYSQL_RPL *rpl) Description Fetch one event from the replication event stream. After a successful call, the size member indicates the event size, which is 0 for an EOF event. For a non-EOF event, size is greater ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-binlog-open.html
int mysql_binlog_open(MYSQL *mysql, MYSQL_RPL *rpl) Description Open a new replication event stream, to read a MySQL server binary log. rpl: A MYSQL_RPL structure that has been initialized to indicate the replication event stream source. For a ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-character-set-name.html
const char * mysql_character_set_name(MYSQL *mysql) Description Returns the default character set name for the current connection.
https://dev.mysql.com/doc/c-api/8.4/en/mysql-create-db.html
CR_SERVER_LOST The connection to the server was lost during the query. int mysql_create_db(MYSQL *mysql, const char *db) Description Creates the database named by the db parameter. Use mysql_real_query() or mysql_query() to issue an SQL CREATE ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-drop-db.html
CR_SERVER_LOST The connection to the server was lost during the query. int mysql_drop_db(MYSQL *mysql, const char *db) Description Drops the database named by the db parameter. Use mysql_real_query() or mysql_query() to issue an SQL DROP DATABASE ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-eof.html
Because an error may occur on the connection during this process, a NULL return value from mysql_fetch_row() does not necessarily mean the end of the result set was reached normally. mysql_eof() determines whether the last row of a result set has ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-errno.html
unsigned int mysql_errno(MYSQL *mysql) Description For the connection specified by mysql, mysql_errno() returns the error code for the most recently invoked API function that can succeed or fail. Client error message numbers are listed in the MySQL ...