(mysql.info) c-api-functions
Info Catalog
(mysql.info) c-api-function-overview
(mysql.info) c
(mysql.info) c-api-prepared-statements
22.2.3 C API Function Descriptions
----------------------------------
Menu
* mysql-affected-rows `mysql_affected_rows()'
* mysql-autocommit `mysql_autocommit()'
* mysql-change-user `mysql_change_user()'
* mysql-character-set-name `mysql_character_set_name()'
* mysql-close `mysql_close()'
* mysql-commit `mysql_commit()'
* mysql-connect `mysql_connect()'
* mysql-create-db `mysql_create_db()'
* mysql-data-seek `mysql_data_seek()'
* mysql-debug `mysql_debug()'
* mysql-drop-db `mysql_drop_db()'
* mysql-dump-debug-info `mysql_dump_debug_info()'
* mysql-eof `mysql_eof()'
* mysql-errno `mysql_errno()'
* mysql-error `mysql_error()'
* mysql-escape-string `mysql_escape_string()'
* mysql-fetch-field `mysql_fetch_field()'
* mysql-fetch-field-direct `mysql_fetch_field_direct()'
* mysql-fetch-fields `mysql_fetch_fields()'
* mysql-fetch-lengths `mysql_fetch_lengths()'
* mysql-fetch-row `mysql_fetch_row()'
* mysql-field-count `mysql_field_count()'
* mysql-field-seek `mysql_field_seek()'
* mysql-field-tell `mysql_field_tell()'
* mysql-free-result `mysql_free_result()'
* mysql-get-character-set-info `mysql_get_character_set_info()'
* mysql-get-client-info `mysql_get_client_info()'
* mysql-get-client-version `mysql_get_client_version()'
* mysql-get-host-info `mysql_get_host_info()'
* mysql-get-proto-info `mysql_get_proto_info()'
* mysql-get-server-info `mysql_get_server_info()'
* mysql-get-server-version `mysql_get_server_version()'
* mysql-hex-string `mysql_hex_string()'
* mysql-info `mysql_info()'
* mysql-init `mysql_init()'
* mysql-insert-id `mysql_insert_id()'
* mysql-kill `mysql_kill()'
* mysql-library-end `mysql_library_end()'
* mysql-library-init `mysql_library_init()'
* mysql-list-dbs `mysql_list_dbs()'
* mysql-list-fields `mysql_list_fields()'
* mysql-list-processes `mysql_list_processes()'
* mysql-list-tables `mysql_list_tables()'
* mysql-more-results `mysql_more_results()'
* mysql-next-result `mysql_next_result()'
* mysql-num-fields `mysql_num_fields()'
* mysql-num-rows `mysql_num_rows()'
* mysql-options `mysql_options()'
* mysql-ping `mysql_ping()'
* mysql-query `mysql_query()'
* mysql-real-connect `mysql_real_connect()'
* mysql-real-escape-string `mysql_real_escape_string()'
* mysql-real-query `mysql_real_query()'
* mysql-refresh `mysql_refresh()'
* mysql-reload `mysql_reload()'
* mysql-rollback `mysql_rollback()'
* mysql-row-seek `mysql_row_seek()'
* mysql-row-tell `mysql_row_tell()'
* mysql-select-db `mysql_select_db()'
* mysql-set-character-set `mysql_set_character_set()'
* mysql-set-server-option `mysql_set_server_option()'
* mysql-shutdown `mysql_shutdown()'
* mysql-sqlstate `mysql_sqlstate()'
* mysql-ssl-set `mysql_ssl_set()'
* mysql-stat `mysql_stat()'
* mysql-store-result `mysql_store_result()'
* mysql-thread-id `mysql_thread_id()'
* mysql-use-result `mysql_use_result()'
* mysql-warning-count `mysql_warning_count()'
In the descriptions here, a parameter or return value of `NULL' means
`NULL' in the sense of the C programming language, not a MySQL `NULL'
value.
Functions that return a value generally return a pointer or an integer.
Unless specified otherwise, functions returning a pointer return a
non-`NULL' value to indicate success or a `NULL' value to indicate an
error, and functions returning an integer return zero to indicate
success or non-zero to indicate an error. Note that `non-zero' means
just that. Unless the function description says otherwise, do not test
against a value other than zero:
if (result) /* correct */
... error ...
if (result < 0) /* incorrect */
... error ...
if (result == -1) /* incorrect */
... error ...
When a function returns an error, the *Errors* subsection of the
function description lists the possible types of errors. You can find
out which of these occurred by calling `mysql_errno()'. A string
representation of the error may be obtained by calling `mysql_error()'.
Info Catalog
(mysql.info) c-api-function-overview
(mysql.info) c
(mysql.info) c-api-prepared-statements
automatically generated byinfo2html