Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.3Mb
PDF (A4) - 35.3Mb
PDF (RPM) - 34.3Mb
EPUB - 8.6Mb
HTML Download (TGZ) - 8.4Mb
HTML Download (Zip) - 8.4Mb
HTML Download (RPM) - 7.2Mb
Eclipse Doc Plugin (TGZ) - 9.3Mb
Eclipse Doc Plugin (Zip) - 11.4Mb
Man Pages (TGZ) - 200.3Kb
Man Pages (Zip) - 305.6Kb
Info (Gzip) - 3.3Mb
Info (Zip) - 3.3Mb
Excerpts from this Manual

MySQL 5.7 Reference Manual  /  ...  /  C API Function Descriptions

25.8.7 C API Function Descriptions

[+/-]

25.8.7.1 mysql_affected_rows()
25.8.7.2 mysql_autocommit()
25.8.7.3 mysql_change_user()
25.8.7.4 mysql_character_set_name()
25.8.7.5 mysql_close()
25.8.7.6 mysql_commit()
25.8.7.7 mysql_connect()
25.8.7.8 mysql_create_db()
25.8.7.9 mysql_data_seek()
25.8.7.10 mysql_debug()
25.8.7.11 mysql_drop_db()
25.8.7.12 mysql_dump_debug_info()
25.8.7.13 mysql_eof()
25.8.7.14 mysql_errno()
25.8.7.15 mysql_error()
25.8.7.16 mysql_escape_string()
25.8.7.17 mysql_fetch_field()
25.8.7.18 mysql_fetch_field_direct()
25.8.7.19 mysql_fetch_fields()
25.8.7.20 mysql_fetch_lengths()
25.8.7.21 mysql_fetch_row()
25.8.7.22 mysql_field_count()
25.8.7.23 mysql_field_seek()
25.8.7.24 mysql_field_tell()
25.8.7.25 mysql_free_result()
25.8.7.26 mysql_get_character_set_info()
25.8.7.27 mysql_get_client_info()
25.8.7.28 mysql_get_client_version()
25.8.7.29 mysql_get_host_info()
25.8.7.30 mysql_get_option()
25.8.7.31 mysql_get_proto_info()
25.8.7.32 mysql_get_server_info()
25.8.7.33 mysql_get_server_version()
25.8.7.34 mysql_get_ssl_cipher()
25.8.7.35 mysql_hex_string()
25.8.7.36 mysql_info()
25.8.7.37 mysql_init()
25.8.7.38 mysql_insert_id()
25.8.7.39 mysql_kill()
25.8.7.40 mysql_library_end()
25.8.7.41 mysql_library_init()
25.8.7.42 mysql_list_dbs()
25.8.7.43 mysql_list_fields()
25.8.7.44 mysql_list_processes()
25.8.7.45 mysql_list_tables()
25.8.7.46 mysql_more_results()
25.8.7.47 mysql_next_result()
25.8.7.48 mysql_num_fields()
25.8.7.49 mysql_num_rows()
25.8.7.50 mysql_options()
25.8.7.51 mysql_options4()
25.8.7.52 mysql_ping()
25.8.7.53 mysql_query()
25.8.7.54 mysql_real_connect()
25.8.7.55 mysql_real_escape_string()
25.8.7.56 mysql_real_escape_string_quote()
25.8.7.57 mysql_real_query()
25.8.7.58 mysql_refresh()
25.8.7.59 mysql_reload()
25.8.7.60 mysql_reset_connection()
25.8.7.61 mysql_rollback()
25.8.7.62 mysql_row_seek()
25.8.7.63 mysql_row_tell()
25.8.7.64 mysql_select_db()
25.8.7.65 mysql_session_track_get_first()
25.8.7.66 mysql_session_track_get_next()
25.8.7.67 mysql_set_character_set()
25.8.7.68 mysql_set_local_infile_default()
25.8.7.69 mysql_set_local_infile_handler()
25.8.7.70 mysql_set_server_option()
25.8.7.71 mysql_shutdown()
25.8.7.72 mysql_sqlstate()
25.8.7.73 mysql_ssl_set()
25.8.7.74 mysql_stat()
25.8.7.75 mysql_store_result()
25.8.7.76 mysql_thread_id()
25.8.7.77 mysql_use_result()
25.8.7.78 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 nonzero to indicate an error. Note that nonzero 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().


User Comments
Sign Up Login You must be logged in to post a comment.