MySQL Reference Manual for version 4.0.18.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

19.1.3 C API Function Descriptions

19.1.3.1 mysql_affected_rows()  
19.1.3.2 mysql_change_user()  
19.1.3.3 mysql_character_set_name()  
19.1.3.4 mysql_close()  
19.1.3.5 mysql_connect()  
19.1.3.6 mysql_create_db()  
19.1.3.7 mysql_data_seek()  
19.1.3.8 mysql_debug()  
19.1.3.9 mysql_drop_db()  
19.1.3.10 mysql_dump_debug_info()  
19.1.3.11 mysql_eof()  
19.1.3.12 mysql_errno()  
19.1.3.13 mysql_error()  
19.1.3.14 mysql_escape_string()  
19.1.3.15 mysql_fetch_field()  
19.1.3.16 mysql_fetch_fields()  
19.1.3.17 mysql_fetch_field_direct()  
19.1.3.18 mysql_fetch_lengths()  
19.1.3.19 mysql_fetch_row()  
19.1.3.20 mysql_field_count()  
19.1.3.21 mysql_field_seek()  
19.1.3.22 mysql_field_tell()  
19.1.3.23 mysql_free_result()  
19.1.3.24 mysql_get_client_info()  
19.1.3.25 mysql_get_client_version()  
19.1.3.26 mysql_get_host_info()  
19.1.3.27 mysql_get_proto_info()  
19.1.3.28 mysql_get_server_info()  
19.1.3.29 mysql_get_server_version()  
19.1.3.30 mysql_info()  
19.1.3.31 mysql_init()  
19.1.3.32 mysql_insert_id()  
19.1.3.33 mysql_kill()  
19.1.3.34 mysql_list_dbs()  
19.1.3.35 mysql_list_fields()  
19.1.3.36 mysql_list_processes()  
19.1.3.37 mysql_list_tables()  
19.1.3.38 mysql_num_fields()  
19.1.3.39 mysql_num_rows()  
19.1.3.40 mysql_options()  
19.1.3.41 mysql_ping()  
19.1.3.42 mysql_query()  
19.1.3.43 mysql_real_connect()  
19.1.3.44 mysql_real_escape_string()  
19.1.3.45 mysql_real_query()  
19.1.3.46 mysql_reload()  
19.1.3.47 mysql_row_seek()  
19.1.3.48 mysql_row_tell()  
19.1.3.49 mysql_select_db()  
19.1.3.50 mysql_set_server_option()  
19.1.3.51 mysql_shutdown()  
19.1.3.52 mysql_sqlstate()  
19.1.3.53 mysql_ssl_set()  
19.1.3.54 mysql_stat()  
19.1.3.55 mysql_store_result()  
19.1.3.56 mysql_thread_id()  
19.1.3.57 mysql_use_result()  
19.1.3.58 mysql_warning_count()  
19.1.3.59 mysql_commit()  
19.1.3.60 mysql_rollback()  
19.1.3.61 mysql_autocommit()  
19.1.3.62 mysql_more_results()  
19.1.3.63 mysql_next_result()  

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().


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by rdg (Feb 25 2004) using texi2html